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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to set up BIND and DHCP on a RHEL4 server. DHCP seems to be working fine, but since the two are related I decided to include it here anyway.
Everything seems to work fine if I am logged on to the server, but if I am logged on to a client I cannot load web pages. When I launch firefox from the client I see it that it says "connecting to somedomain.com", but it never connects and and will eventually time out. I can successfully run the "dig" and "host" commands from both the client and the server.
At this point I could care less whether it becomes a cacheing only name server or a master as long as it works.
Both named and dhcpd start without error.
These are just the latest examples of my config files. At least as far as named.conf goes, there have been various incarnations and all have had exactly the same issue. The named.conf file listed below was an effort to start back at square one.
I guess I should add that this problem exists with or without iptables or selinux.
# My dhcp.conf file
-------------------
ddns-update-style interim;
ignore client-updates;
option time-offset -6; # Central Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.169.200 192.168.169.254;
default-lease-time 21600;
max-lease-time 43200;
# My named.conf file
--------------------
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
query-source address * port 53;
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
zone "notiones.org" IN {
type master;
file "notiones.org.zone";
allow-update { localhost; };
};
zone "169.168.192.in-addr.arpa" IN {
type master;
file "notiones.org.rr.zone";
allow-update { localhost; };
};
include "/etc/rndc.key";
# My forward lookup
-------------------
;
; Zone file for Steve's notiones.org domain
;
; This is the complete database for this zone
;
$TTL 3D
@ IN SOA server1.notiones.org. admin.notiones.org. (
20060808 ; serial number = today's date + rev number
8H ; refresh frequency (8 hours)
2H ; retry frequency (2 hours)
4W ; expiration period for data (4 weeks)
3D ) ; time to live of at least 3 days
IN NS server1 ; Specifies the name server
; IN MX 10 mail ; mx 2b used later (see below)
server1 IN A 192.168.169.254
;other IN A 192.168.169.253 (reserved for additional server)
;mail IN CNAME server1 (reserved for later use)
ftp IN CNAME server1
www IN CNAME server1
# My reverse lookup
-------------------
;
;
$TTL 3D
@ IN SOA server1.notiones.org. admin.notiones.org. (
20060811 ; serial number
28800 ; refresh frequency
14400 ; retry frequency
3600000 ; expiration period
3D ) ; minimum TTL
IN NS server1
1 IN PTR server1
I applied your suggestions and it made things worse. I am sensing I may have some deeper issue because when I changed ...
option domain-name-servers 192.168.169.254;
To
option domain-name-servers server1.notiones.org;
... the dhcp daemon wouldn't start. I received an error message stating that it was looking for a host name or ip address. I thought this was strange as the host name is clearly defined in /etc/sysconfig/network.
I think I may have to start over from the very beginning. Surely I must have some basic networking issue here. My brother gave me "DNS and BIND" by Paul Albitz & Cricket Liu so I am going to give that a read too. That's over 550 pages of pure reading pleasure, to be sure.
Thanks for the help. Not many like to tread in these waters or so it seems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.