Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

named!!!

Status
Not open for further replies.

sudo

Technical User
Dec 7, 2002
3
DK
cant get my dns working... plz look at my config files!!!
i got domain ramses.dyn.ee registered!!

my network:
192.168.3.0/24
192.168.3.1=fw.ramses.dyn.ee
192.168.3.2=dns.ramses.dyn.ee
192.168.3.3=smb.ramses.dyn.ee
192.168.3.4=NT server

NAMED.CONF
// generated by named-bootconf.pl

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
// forwarders { 212.242.40.3; };
// forward first;
};

//
// a caching only nameserver config
//
//controls {
// inet 127.0.0.1 allow { localhost; } keys { rndckey; };

};
zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
}

zone "0.0.127.in-addr.arpa" IN {
type master:
file "named.local";
allow-update { none; };
}

zone "ramses.dyn.ee" IN {
type master;
file "ramses.dyn.ee.zone";
allow-update { none; };
};

zone "3.168.192.in-addr.arpa" IN {
type master;
file "3.168.192.local";
allow-update { none; };
};

//include "/etc/rndc.key";


RESOLV.CONF
nameserver 192.168.3.2
search ramses.dyn.ee

LOCALHOST.ZONE
$TTL 86400
$ORIGIN dns.ramses.dyn.ee.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS dns.ramses.dyn.ee.
1D IN A 127.0.0.1

NAMED.LOCAL
$TTL 86400
@ IN SOA dns.ramses.dyn.ee. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS dns.ramses.dyn.ee.

1 IN PTR dns.ramses.dyn.ee.

RAMSES.DYN.EE.ZONE
$TTL 86400
$ORIGIN dns.ramses.dyn.ee.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS dns.ramses.dyn.ee.
1D IN A 127.0.0.1

localhost IN A 127.0.0.1
dns.ramses.dyn.ee. IN A 192.168.3.2

smb CNME 192.168.3.3


3.168.192.LOCAL
$TTL 86400
@ IN SOA dns.ramses.dyn.ee. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS dns.ramses.dyn.ee.

1 IN PTR fw.ramses.dyn.ee.
2 IN PTR dns.ramses.dyn.ee.
3 IN PTR smb.ramses.dyn.ee.

smb CNAME 192.168.3.3

HOSTS
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.3.2 dns.ramses.dyn.ee dns

NETWORK
NETWORKING=yes
HOSTNAME=dns.ramses.dyn.ee

 
You really want to use 'named-checkconf' and 'named-checkzone' utilities. Also check your /var/log/messages. As far as I can see there is just one orphaned right curly bracket before 'zone "." IN {'.
 
Before I look at that file, is the 'named' service running? Do a 'ps -ef | grep named'. Usually when there is an error in a config file, the service won't start and it will return an error with the line number of the config file it doesn't like.


ChrisP
 
One more visible thing is order in /etc/resolv.conf file.
It should be this

domain xyz.com
nameserver xx.xx.xx.xx

Check /var/log/messages file just after you start name "/etc/init.d/named start" it will give you any error messages if there any.

Patel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top