I am very troubled and I am unable to figure out why my server is unable to connect to the Internet even though my Bind9 and Apache are up and running without any issues. When I try to ping google.com I get the "unknown host google.com" error but when I ping my FQDN which is sammojohn.com it responds without any errors.
I will attach some of my conf files and hopefully you guys can locate a mistake, which I can't.
Before, I need to clarify that the server is using DHCP and my router has assigned a static IP to it. It's an AT&T router and it doesn't like it when a machine is using static.
/etc/hosts/ (igemonas is my hostname)
# The loopback network interface
iface lo inet loopback
# The primary network interface
iface eth0 inet dhcp
Any ideas trust me will help and I appreciate anyone taking the time into helping me out.
127.0.0.1 localhost.localdomain localhost
18.104.22.168 igemonas.sammojohn.com igemonas
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
Please let me know if you need anything more.
Thanks and best regards,