LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-08-2005, 04:05 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 953

Rep: Reputation: 44
BIND error


I have configured BIND and after that I started it.
Then in syslog I found erroes:

Code:
Nov  7 23:30:07 my_server named[21245]: dns_master_load: test.com:12: test.com.test.com: not at top of zone 
Nov  7 23:30:07 my_server named[21245]: zone test.com/IN: loading master file test.com: not at top of zone
Im attaching here my config files.
Let say that my domain is test.com and my IP is 144.67.67.1


named.conf
Code:
options { 
directory "/var/named"; 
                query-source address * port 53; 
}; 

logging{ 
category lame-servers{ 
null; 
}; 
}; 

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

zone "test.com" { 
type master; 
file "test.com"; 
allow-update { none; }; 
allow-transfer { 144.67.67.2; }; 
notify yes; 
};

test.com
Code:
$TTL 86400 
$ORIGIN test.com 
@ IN SOA  test.com. postmaster.test.com. ( 
2005110704 ; serial (d. adams) 
8640 ; refresh 
3600 ; retry 
3600000 ; expiry 
1209600 ) ; min 
IN NS ns1.test.com 
IN NS ns2.test.com 
IN MX 10 test.com 
@ IN A 144.67.67.1 
www IN A 144.67.67.1 
ns1 IN A 144.67.67.1 
ns2 IN A 144.67.67.1 
ftp IN A 144.67.67.1 
komp1 IN A 10.3.11.21
Is this true that any space between words and numbers in test.com file should be separated by TABS ?


Cant even ping local machine by name:
komp1 IN A 10.3.11.21

Please help me with that problem - it is 1st time i configure BIND.
 
Old 11-08-2005, 04:29 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,229
Blog Entries: 1

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
Quote:
test.com.test.com: not at top of zone
You must put a "." at the end of NS and MX records like this:
Code:
IN NS ns1.test.com. 
IN NS ns2.test.com. 
IN MX 10 test.com.
 
Old 11-08-2005, 04:52 AM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 953

Original Poster
Rep: Reputation: 44
same thing... didnt help

Code:
Nov  8 11:34:01 proxy-2 named[23705]: dns_master_load: test.com:12: test.com.test.com: not at top of zone
Nov  8 11:34:01 proxy-2 named[23705]: zone test.com/IN: loading master file test.com: not at top of zone

What about test.com file ? Should any word should be separated by TAB ? (any ?)
Is file test.com i correct ( presented above ) ?
 
Old 11-08-2005, 05:10 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,229
Blog Entries: 1

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
Quote:
$ORIGIN test.com
Put a dot also at the end of this:
Code:
$ORIGIN test.com.
As for the TABs, it doesn't really matters. Using TABs is just for reading easily the zone files.
 
Old 11-08-2005, 05:37 AM   #5
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 953

Original Poster
Rep: Reputation: 44
current test.com file looks like this:

Code:
$TTL 86400 
$ORIGIN test.com. 
@ IN SOA  test.com. postmaster.test.com. ( 
2005110704 ; serial (d. adams) 
8640 ; refresh 
3600 ; retry 
3600000 ; expiry 
1209600 ) ; min 
IN NS ns1.test.com 
IN NS ns2.test.com 
IN MX 10 test.com 
@ IN A 144.67.67.1 
www IN A 144.67.67.1 
ns1 IN A 144.67.67.1 
ns2 IN A 144.67.67.1 
ftp IN A 144.67.67.1 
komp1 IN A 10.3.11.21
...and still no success in syslog ... same error.

I wonder what is wrong. Maybe test.com file ?
Is there any chance to get yourdomain.com file to compare ?
 
Old 11-08-2005, 05:56 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,229
Blog Entries: 1

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
You still forgot the dots "." at the end of the 2 NS and 1 MX records. Here is the correct zone file:
Code:
$TTL 86400 
$ORIGIN test.com. 
@ IN SOA  test.com. postmaster.test.com. ( 
2005110704 ; serial (d. adams) 
8640 ; refresh 
3600 ; retry 
3600000 ; expiry 
1209600 ) ; min 
IN NS ns1.test.com. 
IN NS ns2.test.com. 
IN MX 10 test.com. 
@ IN A 144.67.67.1 
www IN A 144.67.67.1 
ns1 IN A 144.67.67.1 
ns2 IN A 144.67.67.1 
ftp IN A 144.67.67.1 
komp1 IN A 10.3.11.21
Also change (increase by one) the serial number (2005110704 ; serial) to (2005110705 ; serial) before restarting bind

Last edited by bathory; 11-08-2005 at 06:01 AM.
 
Old 11-08-2005, 07:58 AM   #7
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 953

Original Poster
Rep: Reputation: 44
ok i corrected that file and increased serial by 1.

This time in syslog I got this (hope its good):

Code:
Nov  8 14:53:29 my_server named[23934]: binding TCP socket: address in use
cant ping local host by name

root@my_server:/# ping komp1
ping: unknown host komp1

Last edited by czezz; 11-08-2005 at 08:00 AM.
 
Old 11-08-2005, 08:26 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,229
Blog Entries: 1

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
That means that perhaps another instance of bind war running. Run:
Code:
ps aux|grep named
and kill all running processes of bind. Then start named as you normally do.
 
Old 11-08-2005, 08:54 AM   #9
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 953

Original Poster
Rep: Reputation: 44
ok, this time no error or any msg in syslog.

But still cant ping workstation by name in LAN.
From internet this domain will be accesable later - currently it is parked in my domain provider.
At 1st i want to configure BIND.

this line should be enough in test.com file:
Code:
komp1 IN A 10.3.11.21
Should i put LAN address of DNS server ??
*DNS server has 2 NIC: external (internet) and internal (LAN)

Last edited by czezz; 11-08-2005 at 08:57 AM.
 
Old 11-08-2005, 09:05 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,229
Blog Entries: 1

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
You must edit your /etc/resolv.conf and add something like that:
Code:
domain test.com
nameserver 127.0.0.1
nameserver 144.67.67.1
 
Old 11-08-2005, 11:52 AM   #11
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 953

Original Poster
Rep: Reputation: 44
ok ill do like u say but 1 more question before that:
because DNS server is connected directly to internet and has set nameservers from Internet Provider. So currently /etc/resolve.conf looks like this:

Code:
nameserver 195.114.161.55
nameserver 195.114.181.130
should it looks like this below after edit ?

Code:
domain test.com
nameserver 127.0.0.1
nameserver 144.67.67.1
nameserver 195.114.161.55
nameserver 195.114.181.130
 
Old 11-08-2005, 03:37 PM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,229
Blog Entries: 1

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
You can use that /etc/resolv.conf, or use one with just your nameserver and add a "forwarders" option in /etc/named.conf so that your nameserver can forward the queries that cannot respond to the dns of your ISP.
 
Old 11-09-2005, 06:31 AM   #13
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 953

Original Poster
Rep: Reputation: 44
So right now /etc/resolve.conf looks like this:

Code:
domain test.com
nameserver 127.0.0.1
nameserver 144.67.67.1
nameserver 195.114.161.55
nameserver 195.114.181.130
on the host in LAN i set DNS like this:
primary - 10.3.1.8 ( its an internal NIC of my DNS server )
secondary - 144.67.67.1 ( its an extrenal NIC on my DNS server )

When I proceed command ping komp1.test.com I achived no success
What can be wrong ? Can I use this same domain for local workstations ?
 
Old 11-09-2005, 07:33 AM   #14
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,229
Blog Entries: 1

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
This /etc/resolv.conf is for the dns server. For the other hosts the /etc/resolv.conf must contain only 2 lines:
Code:
domain test.com
nameserver 10.3.1.8
and perhaps your ISP's dns server
 
Old 11-09-2005, 08:08 AM   #15
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 953

Original Poster
Rep: Reputation: 44
This is current /etc.resolve.conf:
Code:
domain test.com
nameserver 10.3.1.8
still no success when i try ping komp1.test.com
Im trying to ping from DNS server and from host komp1. The host has set as primary DNS 10.3.1.8 ( no secondary DNS set ).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND Error Kenji Miyamoto Slackware 1 05-22-2005 06:37 AM
bind 9.2.3 error mcalizo Linux - General 1 10-11-2004 05:39 AM
Bind Error sakkie Linux - Networking 1 10-12-2003 09:28 AM
bind error tandre Linux - Software 12 04-15-2003 06:15 PM
Bind 9.2.1 error Saleen_GT_S281 Linux - Networking 4 11-15-2002 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration