Subversion Repositories ALCASAR

Rev

Rev 3099 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3099 Rev 3238
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-dns-local.sh 3099 2022-12-28 11:30:30Z rexy $
2
# $Id: alcasar-dns-local.sh 3238 2024-12-02 22:38:59Z rexy $
3
 
3
 
4
# alcasar-dns-local.sh
4
# alcasar-dns-local.sh
5
# by Rexy - 3abtux
5
# by Rexy - 3abtux
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 54... Line 54...
54
		then
54
		then
55
			echo -e "\tlocal-data: \"$domain.$INT_DNS_DOMAIN IN A $ip_address\"" >> $LOCAL_DNS_FILE
55
			echo -e "\tlocal-data: \"$domain.$INT_DNS_DOMAIN IN A $ip_address\"" >> $LOCAL_DNS_FILE
56
			echo -e "\tlocal-data-ptr: \"$ip_address $domain.$INT_DNS_DOMAIN\"" >> $LOCAL_DNS_FILE
56
			echo -e "\tlocal-data-ptr: \"$ip_address $domain.$INT_DNS_DOMAIN\"" >> $LOCAL_DNS_FILE
57
		fi
57
		fi
58
	done < $LOCAL_HOSTNAME_FILE
58
	done < $LOCAL_HOSTNAME_FILE
59
	if [ $INT_DNS_DOMAIN == "localdomain" ]
59
	if [ $INT_DNS_DOMAIN == "lan" ]
60
	then
60
	then
61
		echo -e "\tlocal-zone: \"$INT_DNS_DOMAIN\" static" >> $LOCAL_DNS_FILE  # Don't forward this local zone
61
		echo -e "\tlocal-zone: \"$INT_DNS_DOMAIN\" static" >> $LOCAL_DNS_FILE  # Don't forward this local zone
62
	fi
62
	fi
63
}
63
}
64
 
64