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 09-29-2004, 10:32 PM   #61
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30

So, ok fine i will try to solve the problem and get back here.

In the mean while any more suggestion are most welcome from LQ members..


Thankx
 
Old 10-04-2004, 04:02 AM   #62
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
Hi all of you,

I read some DNS material and decided to start confiugring DNS from scratch,

some achivements over past configurations are

->> now i can ping 192.168.1.1 from 192.168.1.2 by their ip and by their names( c5m9x2 and wren repectively)

->> and i can run(that gives me error free output) following command

# dig -x 127.0.0.1
# host -a c5m9x2
# host -l foobirds.org 192.168.1.2
# host -v c5m9x2
$ dig @192.168.1.2 c5m9x2.foobirds.org a
$ dig c5m9x2
$ nslookup c5m9x2
$ nslookup wren

and i can't run following command(commands that give me error )
====================================================
#host 192.168.1.1
# host 192.168.1.2
$ dig -x 192.168.1.1
$ dig -x 192.168.1.2
$ dig wren
$ dig localhost
$dig c5m9x2
$ nslookup 192.168.1.2
$ nslookup 192.168.1.1

So,

As i can use host command for name (host -x c5m9x2)resolution why i can't use host command to map ip(host 192.168.1.1) to name

and i can dig -x 127.0.0.1 so why i can't dig 192.168.1.2 and so why i can't run the above commands.



Plz. help needed to learn DNS server, learnt many things want to learn more


For further reference output of any of command and any of the bind configuration files can provided , if needed
 
Old 10-04-2004, 04:18 AM   #63
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,700

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Hi again,
If your named.conf is the one in your 1st post, then it's natural since you didn't define the zone files for the 192.168.x.x
Create those files (one for your domain IPS and the other for the reverse zone).
Example:
1st: yourdomain
192.168.1.1 IN A c5m9x2
192.168.0.2 IN A wren

2nd: yourdomain.reverse
1 IN PTR c5m9x2
2 IN PTR wren
 
Old 10-04-2004, 04:28 AM   #64
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
thanx, i had created zone......

for reference (all newly configured files)
==========

#/etc/named.conf ( a basic configuration file of master server)

options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
};

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

zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};

zone "foobirds.org" {
type master;
file "foobirds.hosts";
};

zone "168.192.in-addr-arpa" {
type master;
file "192.168.reverse";
};

#/var/named/foobirds.org
$TTL 1d
@ IN SOA wren.foobirds.org. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

;Define the nameservers

NS wren.foobirds.org.

;Define localhost
localhost A 127.0.0.1

;Define the hosts in this zone

c5m9x2 A 192.168.1.1 ;window 98
wren A 192.168.1.2 ;linux mandrake
yoyo A 192.168.1.3 ;linux redhat

#/var/named/192.168.reverse
$TTL 1d
@ IN SOA wren.foobirds.org. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

NS wren.foobirds.org.

1.1 PTR c5m9x2.foobirds.org.
2.1 PTR wren.foobirds.org.
3.1 PTR yoyo.foobirds.org.



Last edited by emailssent; 10-04-2004 at 04:33 AM.
 
Old 10-04-2004, 05:57 AM   #65
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I can't tell if there was a question in your last post, but I spotted a few changes that need to be made to your current configuration.

1) Since you are not specifying an RR type in your zone calls in named.conf, then each zone definition record would need to specify the RR type. Example:

cut/paste from your named.conf
zone "foobirds.org" {
type master;
file "foobirds.hosts";
};

...needs to be
zone "foobirds.org" IN {
type master;
file "foobirds.hosts";
};

Now your zone files will load properly. Why? Because each record in your zone files do NOT specify an RR type. Example:

cut/paste from foobirds.org
c5m9x2 A 192.168.1.1 ;window 98
...needs to be
c5m9x2 IN A 192.168.1.1 ;window 98

In fact, I add RR types in both named.conf and all my zone files.

2) The name server record in your zone files needs (in addition to #1), the domain name specifed. example:
NS wren.foobirds.org.
...needs to be
@ IN NS wren.foobirds.org.

3) Your zone definition for 192.168.1 is referencing the wrong zone name. Example:
zone "168.192.in-addr-arpa" {
type master;
file "192.168.reverse";
};

Should be zone "168.192.in-addr.arpa"

BTW: unlike the host and nslookup commands, dig requires a fully qualifed domain name to be specifed.
 
Old 10-04-2004, 06:24 AM   #66
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
Quote:
3) Your zone definition for 192.168.1 is referencing the wrong zone name. Example:
zone "168.192.in-addr-arpa" {
type master;
file "192.168.reverse";
};

Should be zone "168.192.in-addr.arpa"

Plz. tell me what is wrong in my zone defination fo 192.168.1 , as in your above statement.....
 
Old 10-04-2004, 06:32 AM   #67
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
It's nothing more than a typo...

-arpa versus .arpa
 
Old 10-04-2004, 07:07 AM   #68
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
Thanks, Thanks, Thanks, Thanks, Thanks.........





Thanks scowles, bathory, darthtux


Finally I can run all the previous command mentioned in previous posts.

Their was a typo mistake due to which reverse zone file was not able to load and problem of defining RR type (IN)...



Thanks && Congratulation all of you, I learnt all the basics now I will read some advanced topics (DNS security , Dynamic DNS(DDNS) etc.) and get here if I will not able to solve any query.




 
Old 10-05-2004, 10:45 AM   #69
gt1
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Hello!
I am having some of the same problems described earlier in this thread. It is disappointing- I used to run BIND on RedHat and Mandrake years ago, but now nothing works!
The most urgent problem is that I can't get the secondary server to sync with primary. Primary is running Simple DNS Plus on WinXP (I had to have something working, had no luck with Linux). The network is not connected to Internet.
On the secondary server I run BIND9 on Fedora 2.
BIND process is running: ps shows /usr/sbin/named -u named -t /var/named/chroot

When BIND starts, I see the following in /var/log/messages
listening on IPv4 interface lo, 127.0.0.1#53
listening on IPv4 interface eth0, 192.168.8.250#53
couldn't add command channel 127.0.0.1#953: not found
couldn't add command channel : :1#953: not found
running
dumping master file: slaves/tmp-XXXXJZfoNO: open: file not found
transfer of 'aa.com/IN' from 192.168.8.242#53: failed while receiving responces: file not found
transfer of 'aa.com/IN' from 192.168.8.242#53: end of transfer
named startup succeeded
dumping master file: slaves/tmp-XXXXJZfoNO: open: file not found
transfer of 'aa.com/IN' from 192.168.8.242#53: failed while receiving responces: file not found
transfer of 'aa.com/IN' from 192.168.8.242#53: end of transfer

At the same time, log on the primary server says:
Zone Transfer Request from 192.168.8.250 for aa.com (TCP)
Sending zone Transfer to 192.168.8.250 for aa.com

So the problem is definetely in the secondary server
I tried to put aa.com.zone file with 777 permissions into /var/named/chroot/var/named/slaves, but it didn't help.

named.conf is located in /var/named/chroot/etc and contains the following:
zone "aa.com" {
type slave;
file "slaves/aa.com.zone";
masters {
192.168.8.242 ;
};
};

Any help will be appreciated
 
Old 10-06-2004, 01:51 AM   #70
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,700

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
named.conf starts with:
Code:
options {
directory "/path/to/zone/files";
...
}
So the secondary DNS creates it's files in the path shown by the directory line. You start named with: -t /var/named/chroot (which is not necessary as named runs under the user named) and you expect the zone files to be in: /var/named/chroot/var/named/slaves. Fix the paths and restart named.
 
Old 10-06-2004, 11:45 AM   #71
gt1
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Bathory, thanks a lot! I added directory "var/named" in /var/named/chroot/etc/named.conf, and BIND synced. The -t /var/named/chroot option is install default, I didn't change a thing. So I guess that the reason for my problem was that default configuration is broken and has to be manually tweaked.

By the way, I think I had to ask this first, but is there any documentation which covers configuring BIND under Fedora? I couldn't find anything. What I could find didn't answer my questions.

Last edited by gt1; 10-06-2004 at 11:55 AM.
 
Old 10-07-2004, 02:03 AM   #72
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,700

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
I don't know if there is documentation specific for FC, but apart from ther different locations of the config files etc, the general bind documentation applies to all distros. You can take a look here
 
Old 10-12-2004, 06:08 AM   #73
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
Is it ok that DNS is used for name to ip and ip to named resolution
but
For which application a DNS is used in a LAN,

I think it can used for NFS, SAMBA or ... or any other tell me ?

And specifically in which application it is required for ip to name resolution ?

Am i right or not....

Last edited by emailssent; 10-12-2004 at 06:19 AM.
 
  


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
DNS service error LinuxRam Linux - Networking 4 09-12-2004 05:26 AM
Dns Service praveenv Linux - Newbie 2 09-08-2004 12:24 PM
Dynamic Ip Dns Service murphyyoung Linux - Networking 2 06-19-2004 02:34 PM
DNS ERROR: Name or service not known. rioguia Linux - Networking 25 10-21-2003 09:46 AM
DNS Service ddepuemd Linux - Networking 1 05-16-2002 11:17 AM

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

All times are GMT -5. The time now is 12:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration