LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 02-25-2007, 03:33 AM   #1
manolia
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Rep: Reputation: 0
plz help in red hat 9 dns


sir....
i connect small network and install dns server on red hat linux 9 .the dns server work well but the clients dont see it . how can i configure the dns clients ????
and about cach dns.. do i put it in same dns server and how can i configure it????
thanks alot
russul
 
Old 02-25-2007, 03:19 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
You need to configure every user to use your server instead of the one they're using one. It's easier if your network configuration is downloaded via DHCP (you need to switch the global configuration only), but if every client has a separate config, you need to reconfigure them all.

Caching nameserver may be the same server that work as your standard DNS. In fact, in smaller companies/home it's the preferred way to go. This howto shows the setup method: http://tldp.org/HOWTO/DNS-HOWTO-3.html
 
Old 02-26-2007, 01:34 AM   #3
manolia
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
plz can u explain more????

Quote:
Originally Posted by Mara
You need to configure every user to use your server instead of the one they're using one. It's easier if your network configuration is downloaded via DHCP (you need to switch the global configuration only), but if every client has a separate config, you need to reconfigure them all.

Caching nameserver may be the same server that work as your standard DNS. In fact, in smaller companies/home it's the preferred way to go. This howto shows the setup method: http://tldp.org/HOWTO/DNS-HOWTO-3.html
Dear ...
plz... can you explain more about configure every user to use your server instead of the one they're using one. It's easier if your network configuration is downloaded via DHCP.how can i do it????
my situation is: ican ping any host by ip and have reply .and ican get reply if i ping from the dns server to any client by the host name butttttttt when i ping from client to dns server or to any other client by host name the reply is unkown host. i check my dns by netstat and dig command and it work .
best regards
russul
 
Old 02-26-2007, 03:45 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
If the hosts are Linux you need to edit /etc/resolv.conf and add add a line (make it first from all nameserver lines):
nameserver server_ip
example: nameserver 192.168.1.1
That's all.

In Windows, I don't know. Probably something in network (TCP/IP) settings.

With DHCP (dhcpd): you need to add something like:
option domain-name-servers 192.168.1.1;
for your subnet.
 
Old 02-27-2007, 05:49 AM   #5
manolia
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
i did that

Quote:
Originally Posted by Mara
If the hosts are Linux you need to edit /etc/resolv.conf and add add a line (make it first from all nameserver lines):
nameserver server_ip
example: nameserver 192.168.1.1
That's all.

hi
thanks alot i hope i dont take ur time.
i already did that and put nameserver 192.168.1.1 in
/etc/resolv.conf .is my problem in the client or the dns server ????if u dont mind i want to send the configuration files of the bind to u to check them but i dont know how by the forum can u help me in that???
 
Old 02-27-2007, 02:27 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
You can easily test that. From one of your Linux clients run
dig @192.168.1.1 example.com
Use any site as 'example.com'. It should return correctly resolved address. It would mean that the server is configured correctly and there's only a problem in client configuration.

If you feel you need the configs changed, post them to the forum (after removing all the possible entries you don't want to have public). Linux-Networking would be a good location. When posting it in such a way it would not only benefit you, but also others who may have a similar problem in the future.
 
Old 02-28-2007, 11:55 PM   #7
manolia
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
sorry

Quote:
Originally Posted by Mara
.

If you feel you need the configs changed, post them to the forum (after removing all the possible entries you don't want to have public). Linux-Networking would be a good location. When posting it in such a way it would not only benefit you, but also others who may have a similar problem in the future.
Im so sory i mean i post them to the forum and if u could check them.but i have a problem:how can get the copy from certain config file in linux and see it in widows then how can send them to the forum????plz forgive me if i bother u
thanks alot
 
Old 03-03-2007, 03:20 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
Well...you just need to copy the file. If both systems are on the same machine, you can copy it from Linux to Windows (should be easier) or access Linux partition from Windows and do the same. If they're on different machines, just use network (ftp for instance), a pendrive etc. To post the files, just copy their content (they're simple text, so that's easy).
 
Old 03-04-2007, 03:16 AM   #9
manolia
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
thanks alot.. these are the config files for my dns on linux redhat 9 (bind server)for simple network of 2 clients .the dns works and i can ping from it to the client and itself by hostname but i can do that from the client plz can u check them and told me where is the error????
/etc/named.conf:

## named.conf - configuration for bind
#
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
#
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

include "/etc/named.custom";

include "/etc/rndc.key";







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


zone "localhost" {
type master;
file "localhost.zone";
};
zone "roro" {
type master;
file "roro.zone";
};



/var/named/roro.zone:



$TTL 86400
@ IN SOA @ root.localhost (
5 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)


IN NS com2.roro.


com3 IN A 192.168.1.3
com2 IN A 192.168.1.2


/var/named/1.168.192.in-addr.arpa.zone:



$TTL 86400
@ IN SOA @ root.localhost (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)


@ IN NS com2.roro.

2 IN PTR com2.roro.
3 IN PTR com3.roro.


/etc/resolv.conf:

search roro
nameserver 127.0.0.1
nameserver 192.168.1.2

/etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost

/var/named/named.local:
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.

1 IN PTR localhost.

/var/named/0.0.127.in-addr.arpa.zone:


$TTL 86400
@ IN SOA localhost. root.localhost (
7 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)


@ IN NS localhost.

1 IN PTR localhost.

russul
 
Old 03-04-2007, 01:18 PM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
And the resolv.conf file comes from the server or one of the clients?
 
Old 03-04-2007, 04:39 PM   #11
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,068
Blog Entries: 4

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
I have moved these posts to Networking as they are probably better there.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring DNS under FC4 johndoe0028 Linux - Networking 5 01-06-2006 09:15 AM
Configuring DNS kamransoomro84 Linux - General 4 11-21-2005 10:52 PM
Configuring DNS and DHCP plehman Linux - Networking 3 03-24-2005 05:21 PM
configuring dns abhis_mail2002 Fedora 0 01-12-2005 05:41 AM
Please help me configuring DNS!!! dibakar Linux - Networking 12 04-14-2003 12:27 PM


All times are GMT -5. The time now is 08:21 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration