LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-27-2004, 07:04 AM   #1
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296

Rep: Reputation: 31
Is it a DNS problem?


I have a small network with 6 machines. i fedora core 2 that is dhcpd httpd named server for the netowrk. it is called fedora.homenet.home and the others are a variation on <somename>.homenet.home.
The problem:-
If I issue nslookup i can get the names and IP's of the other Pc's on the network no problem, but if I nslookup then ask for fedora I can't get an answer, however, if I ask for homenet.home I get the IP of fedora(its the only static IP 192.168.1.1) and it thinks the name is homenet.home and not fedora.homenet.home?
The exact same thing happens with host -l homenet.home, I get all the names and IP's of the PC's but nothing for fedora.homenet.home. It gives me the IP but thinks its called homenet.home. Any ideas!!

Thanx in advance
 
Old 08-27-2004, 07:24 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
what does /etc/sysconfig/network file say about fedora box name?
HOSTNAME=...
 
Old 08-27-2004, 07:27 AM   #3
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296

Original Poster
Rep: Reputation: 31
I'm not at the fedora box but I'm positive the file is:-

NETWORKING=yes
HOSTNAME=fedora.homenet.home
 
Old 08-27-2004, 07:44 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
do u have an entry in zone file about fedora box?

like:
fedora IN A 192.168.1.1

or

fedora IN CNAME homenet.home.
 
Old 08-27-2004, 08:37 AM   #5
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296

Original Poster
Rep: Reputation: 31
I don't think so. Where in the file shall a place the entry? Can u give me the correct syntax please!?
 
Old 08-27-2004, 09:04 AM   #6
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
Re: Is it a DNS problem?

Quote:
Originally posted by james.farrow
I have a small network with 6 machines. i fedora core 2 that is dhcpd httpd named server for the netowrk. it is called fedora.homenet.home
Thanx in advance
dont u have named running? so u must have zone files for homenet.home

check /etc/named.conf to learn name of zone file of the homenet.home domain. not the reverse zone file!! if u want resolve ip to name, u must edit reverse zone file and add PTR records.
and find the file. it must be in somewhere of /var/named

#find /var/named -name "zone-file-name-of-homenet.home" -type f

after that, edit that file and add the following line.
fedora IN CNAME homenet.home.

did u use wizard to create homenet.home zone file ?
 
Old 08-27-2004, 09:10 AM   #7
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
You can add the entry in the /etc/hosts file as well. I think its faster and easier. Ths 'hosts' file looks at static entries to resolve any hostnames to IP's and vice versa when their isnt a name server on the network. You can use that file and the DNS you have setup at the same time.

just add the line :

192.168.1.1 fedora.homenet.home fedora.homenet.home
 
Old 08-27-2004, 09:22 AM   #8
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
NetAX, u r right.
but the host files of other clients must be updated too. otherwise clients wont know the ip of the fedora.homenet.home
 
Old 08-27-2004, 09:44 AM   #9
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296

Original Poster
Rep: Reputation: 31
I edited the filed from scratch using vim. named is running. when i look at /var/log/messages and restart named it says named start up succeeded loaded serail ......
i have the folowing files in /var/named/chroot/var/named
homenet.home.zone
homenet.home.rev
named.ca
named.local

I'm not at my box now this is from memory.

which file do i add th line fedora IN CNAME homenet.home.
and where?
 
Old 08-27-2004, 09:57 AM   #10
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
i think the file that u must edit is /var/named/chroot/var/named/homenet.home.zone
just add that line at the end of file.

i hope it will work. because u use named with chroot. and u probably used system-config-bind wizard .

when i tried to configure named by using fedora's wizard, i failed to add some A and PTR records correctly i think editing files is the best way.

good luck
 
Old 08-27-2004, 09:59 AM   #11
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296

Original Poster
Rep: Reputation: 31
thanx for the help, I'll give it a try when I'm at my fedora box.
 
  


Reply



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 problem. Please help! auroratrading Linux - Networking 1 04-05-2005 02:14 AM
problem with DNS bglad Linux - Networking 9 10-20-2003 05:39 AM
Possible DNS problem? JimBass Linux - Newbie 8 10-03-2003 10:23 PM
DNS problem with RH 8.0 datamisc Linux - Newbie 2 12-20-2002 12:37 PM
DNS problem Cubiq Linux - Networking 12 09-06-2002 03:42 AM

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

All times are GMT -5. The time now is 01:52 AM.

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