Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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
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
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.
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???
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.
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
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).
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
)
/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
)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.