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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DNS server - *** Can't find server name for address 127.0.0.1: Server

Status
Not open for further replies.

richdthomas

Programmer
Sep 1, 2002
19
GB
Hi,

I am trying to set up a pair of internal DNS servers (primary and secondary) on Sun Solaris 8.

I do not need these servers to resolve real outside world DNS names like
I simply need to specify a list of internal private IP addresses and private DNS names.

E.G.

192.168.199.1 firewall_a.dmz.loc
192.168.199.10 firewall_b.dmz.loc

etc.

I have set up the files /etc/resolv.conf, /etc/nsswitch.conf, /etc/named.conf, /var/named/db.dmz.loc, /var/named/db.192.168.199, /var/named/db.127.0.0, I have showed the content of these files at the bottom of this posting.

I rebooted the server once I had set up these files.

I have an error which points to the fact that I have not set up the named.ca file.

I realise that the way in which it's set up is different for resolving private and public DNS names and IP addresses.

The configuration of this file refers to a route server, which I do not intend to use, as my DNS setup is fairly straightforward.

I then populated /var/named/named.ca, to see if it would make any different, but it still resulted in the same error.

The error I get is when I run "nslookup" to test the setup and is as follows:
*** Can't find server name for address 127.0.0.1: Server failed
*** Can't find server name for address 192.168.199.44: No response from server
*** Default servers are not available

I have read and followed the documents in the following web pages:

I have also checked that the name demon is running, which it is:
ps -ef | grep named
root 169 1 0 Jun 22 ? 0:00 /usr/sbin/in.named

The IP listener is running as well:
# netstat -na | grep 53
127.0.0.1.53 Idle
192.168.199.42.53 Idle
127.0.0.1.53 *.* 0 0 24576 0 LISTEN
192.168.199.42.53 *.* 0 0 24576 0 LISTEN

If anybody has any suggestions, please could you let me know.

Thank you.

Richard Thomas.



In /etc/resolv.conf:

; Specify the domain that this machine is in
domain dmz.loc
; use the domain names in the company as the search list
search dmz.loc nisaba.loc
; try local name server
nameserver 127.0.0.1
; if local name server down, try these servers
nameserver 192.168.199.44




In /etc/nsswitch.conf:

<snip>
hosts: files dns
<snip>




In /etc/named.conf

options {
directory "/var/named";
forwarders {
10.10.0.15;
};
recursion no;
};

logging {
category queries { default_syslog; };
};

// define the dmz.loc domain
zone "dmz.loc" {
type master;
file "db.dmz.loc";
};




In /var/named/db.127.0.0:

$TTL 86400

127.0.0.in-addr.arpa. IN SOA kbmain.dmz.loc. richardt.retail-logic.com.
(
1 ; Serial
10800 ; Refresh after 3 hours
3600 ; Retry after 1 hour
604800 ; Expire after 1 week
86400 ) ; Minimum TTL of 1 day
600 ) ; Minimum TTL of 10 minutes

;
; Name servers
;
0.0.127.in-addr.arpa. IN NS kbmain.dmz.loc.

1.0.0.127.in-addr.arpa. IN PTR localhost.




In db.192.168.199:

$TTL 86400

192.168.199.in-addr.arpa. IN SOA kbmain.dmz.loc.
richardt.retail-logic.com. (
1 ; Serial
10800 ; Refresh after 3 hours
3600 ; Retry after 1 hour
604800 ; Expire after 1 week
600 ) ; Minimum TTL of 10 minutes

;
; Name servers
;
dmz.loc. IN NS kbmain.dmz.loc.

;
; Host addresses point to canonical name
;
1.192.168.199.1.in-addr.arpa. IN PTR firewall_a.dmz.loc.
2.192.168.199.42.in-addr.arpa. IN PTR kbmain.dmz.loc.
3.192.168.199.44.in-addr.arpa. IN PTR kbbackup.dmz.loc.




In db.dmz.loc:

$TTL 86400

dmz.loc. IN SOA kbmain.dmz.loc. richardt.retail-logic.com. (
1 ; Serial
10800 ; Refresh after 3 hours
3600 ; Retry after 1 hour
604800 ; Expire after 1 week
600 ) ; Minimum TTL of 10 minutes

;
; Name servers
;
dmz.loc. IN NS kbmain.dmz.loc.

;
; Host addresses for the canonical names
;
localhost.dmz.loc. IN A 127.0.0.1
firewall_a.dmz.loc. IN A 192.168.199.1
kbbackup.dmz.loc. IN A 192.168.199.44
kbmain.dmz.loc. IN A 192.168.199.42




In /var/named/named.ca:

. 485418 NS H.ROOT-SERVERS.NET.
. 485418 NS B.ROOT-SERVERS.NET.
. 485418 NS C.ROOT-SERVERS.NET.
. 485418 NS D.ROOT-SERVERS.NET.
. 485418 NS E.ROOT-SERVERS.NET.
. 485418 NS I.ROOT-SERVERS.NET.
. 485418 NS F.ROOT-SERVERS.NET.
. 485418 NS G.ROOT-SERVERS.NET.
. 485418 NS A.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET. 603737 A 128.63.2.53
B.ROOT-SERVERS.NET. 603737 A 128.9.0.107
C.ROOT-SERVERS.NET. 603737 A 192.33.4.12
D.ROOT-SERVERS.NET. 603737 A 128.8.10.90
E.ROOT-SERVERS.NET. 603737 A 192.203.230.10
I.ROOT-SERVERS.NET. 603737 A 192.36.148.17
F.ROOT-SERVERS.NET. 578897 A 192.5.5.241
F.ROOT-SERVERS.NET. 546641 A 39.13.229.241
G.ROOT-SERVERS.NET. 603737 A 192.112.36.4
A.ROOT-SERVERS.NET. 603737 A 198.41.0.4
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top