New
#11
on ubuntu (as root):
post outputCode:hostname -f hostname -a
This is the ethernet info from the my pc:
hostname -f returns my server's name, hostname -a doesn't return anything.Code:Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Realtek RTL8168D/8111D Family PCI-E Gigab it Ethernet NIC (NDIS 6.20) Physical Address. . . . . . . . . : ----- DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::1842:1a3c:252c:3d54%10(Preferred) IPv4 Address. . . . . . . . . . . : 192.168.1.2(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : Friday, October 11, 2013 11:38:52 AM Lease Expires . . . . . . . . . . : Saturday, October 12, 2013 11:38:52 AM Default Gateway . . . . . . . . . : 192.168.1.1 DHCP Server . . . . . . . . . . . : 192.168.1.1 DHCPv6 IAID . . . . . . . . . . . : 239622969 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-17-40-7E-DD-48-5B-39-36-1B-A8 DNS Servers . . . . . . . . . . . : 192.168.1.1 NetBIOS over Tcpip. . . . . . . . : Enabled
cat /etc/network/inferfaces gets:
the resolv.conf files says "nameserver 127.0.0.1Code:auto lo iface lo inet loopback
My server doesn't really do anything besides host files, it does no routing functions or actual server processes.
So linux has to have dns 192.168.1.1 as well!
Can linux ping 74.125.136.94?
can linux ping www.google.nl
?
Add these lines to /etc/network/inferfaces and reboot. After reboot post resolv.conf
Code:auto eth0 iface eth0 inet dhcp