I have RedHat8 running on a small LAN. My proxy/router has DNS and NAT enabled and is working fine. I can ping internet addresses by IP, but not by name. I have at times managed to get the RH8 box to use the proxy's DNS for name resolving but it is lost after reboot.
Here's the setup:
Router/proxy server:
IP: 10.0.0.1
Subnet: 255.255.255.0
RH8 box:
IP: 10.0.0.140
subnet: 255.255.255.0
Contents of /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=yes
PEERDNS=yes
TYPE=Ethernet
IPADDR=10.0.0.140
NETMASK=255.255.255.0
GATEWAY=10.0.0.1
NETWORK=10.0.0.0
BROADCAST=10.0.0.255
Contents of /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
GATEWAY=10.0.0.1
Contents of /etc/resolv.conf
; generated by /sbin/dhclient-script
search 10.0.0.1
nameserver 10.0.0.1
Contents of /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.0.0.140 mypc mypc.localdomain
10.0.0.1 ntbox ntbox.localdomain
Any ideas anybody. This is slowly killing me. Aarrrghhh!
Here's the setup:
Router/proxy server:
IP: 10.0.0.1
Subnet: 255.255.255.0
RH8 box:
IP: 10.0.0.140
subnet: 255.255.255.0
Contents of /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=yes
PEERDNS=yes
TYPE=Ethernet
IPADDR=10.0.0.140
NETMASK=255.255.255.0
GATEWAY=10.0.0.1
NETWORK=10.0.0.0
BROADCAST=10.0.0.255
Contents of /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
GATEWAY=10.0.0.1
Contents of /etc/resolv.conf
; generated by /sbin/dhclient-script
search 10.0.0.1
nameserver 10.0.0.1
Contents of /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.0.0.140 mypc mypc.localdomain
10.0.0.1 ntbox ntbox.localdomain
Any ideas anybody. This is slowly killing me. Aarrrghhh!