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

DNS problems

Status
Not open for further replies.

skyler

MIS
May 15, 2001
20
0
0
US
Hi all-
This is a new install of DNS/Bind 8.
Here is my named.conf:
options {
// DNS tables are located in the /var/named directory
directory "/var/named";

// Enable caching and load root server info

zone "." {
type hint;
file "root.cache";
};

// All our DNS information is stored in /var/named/
zone "mydomainname.com" {
type master;
file "mydomainname.db";
};

zone "1.168.192.in-addr.arpa" {
type master;
file "myiprange.db";
};

zone "0.0.127.in-addr.arpa" {
type master;
file "localhost.db";
};

First off- /var/log/messages reports:
al named[837]: /etc/named.conf:7: syntax error near zone
this line:
zone "." {

Secondly- I recieve the following error while issuing an nslookup, where .48 is the name server I'm querying:
[root@al /etc]# nslookup admin.mydomain.com 192.168.1.48
*** Can't find server name for address 192.168.1.48: Non-existent host/domain
*** Default servers are not available


But when I usse the same command from DOS, I recieve the same error, but it returns the record anyways:
C:\>nslookup admin.mydomain.com 192.168.1.48
*** Can't find server name for address 192.168.1.48: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 192.168.1.48

Name: admin.mydomain.com
Address: 192.168.1.45

Which is correct, but still the error. I'm pretty sure its something to do with my reverse lookup file, so here it is:

myiprange.db:
$TTL 43200
@ IN SOA al.modalis.com. postmaster.modalis.com. (
2001062701
300
60
1209600
43200)
IN NS al.modalis.com.
1 IN PTR modalis.com.
2 IN PTR 3 IN PTR 48.1.168.192.in-addr.arpa.

Thanks for your help/suggestions/cash gifts "Nuclear war can ruin your whole compile."
-- Karl Lehenbauer
 
1. you need }; to end openning { for option clause.

options {
directory "/var/named";
};

After you change restart the named.

2. Please check you /etc/resolv.conf file. if you can send it to me or past it here.

Sachin

 
Your resolver doesn't know that you mean modalis.com when
you say mydomainname.com -> modalis.com should work.
That is the error standing out in named.conf, quickly.




reverse should look like this:

$TTL 1D (or whatever)
@ IN SOA al.modalis.com. postmaster.modalis.com. (
2001062701
300
60
1209600
43200)

IN NS al.modalis.com.

1 IN PTR localhost.
48 IN PTR al.modalis.com.

The last octet is the host portion in this case, so
the host needs to be identified for the reverse.
The forward is defined correctly, I am assuming.
This will get you started.

bye now.

 
Whoo-hoo! Thanks for your help = ) All systems go, named.workey.good

However! var/log/messages is reporting the following error condition:
Jun 28 10:58:04 al named[5618]: denied update from [192.168.1.193].1168 for "modalis.com"
Jun 28 10:58:04 al named[5618]: denied update from [192.168.1.193].1173 for "1.168.192.in-addr.arpa"

.193 is a Windows 2000 server that DID have a DNS server on it. I removed the DNS server and rebooted, yet I still get the above error message. Any ideas?

Thanks again!

"Nuclear war can ruin your whole compile."
-- Karl Lehenbauer
 
Your zone trasfer between nt and ux is not working. your 2000 server is denieing for zone trasfer.

You says you remove DNS means from 2000? if yes. did you restart the DNS on Linux. kill -HUP ip-of-named

Sachin
 
Restarting Linux DNS did the trick- sometimes it's the simple things you forget = )

Hope everyone has a /great/ weekend! "Nuclear war can ruin your whole compile."
-- Karl Lehenbauer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top