Tag Info

Hot answers tagged

2

For static IP situations, the Ubuntu Server Guide says to change the file /etc/network/interfaces, which may look like this: iface eth0 inet static address 192.168.3.3 netmask 255.255.255.0 gateway 192.168.3.1 dns-search example.com dns-nameservers 192.168.3.45 192.168.8.10 You change the IPs 192.168.3.45 192.168.8.10 for the ones you want, like 8.8.8.8 ...


1

My /etc/dhcp/dhclient.conf file uses the following configuration, notice the supercede line # Configuration file for /sbin/dhclient, which is included in Debian's # dhcp3-client package. # # This is a sample configuration file for dhclient. See dhclient.conf's # man page for more information about the syntax of this file # and a more comprehensive ...


1

If you updated one hour ago maybe the propagation isn't finished yet? You might want to check what's my dns to be sure that your new dns resolution has spread everywhere.


1

Another approach (~/.ssh/config): Host *.example.com HostName %h USER user Host * HostName %h.example.com USER user This allows both forms: ssh private.example.com # ssh user@private.example.com ssh private # ssh uesr@private.example.com This really only works in the case where you are only connecting to .example.com hostnames (since * ...


1

to get the first DNS SERVER (IP only) : cat /etc/resolv.conf |grep -i nameserver|head -n1|cut -d ' ' -f2 cat will output DNS config grep filters only nameserver head will keep only the first row/instance cut take the ip part of the row (second column with ' ' as separator) To put DNS ip in an environment variable, you could use as follow: export ...


1

I know this is long since solved for OP, but just for the sake of anyone who ends up here googling a problem, my solution was to do what soulmerge suggested except I took it one step further and re-added the lines until it broke again, and I found this: Any lines longer than exactly 710 characters breaks it, regardless of whether that line is just a ...



Only top voted, non community-wiki answers of a minimum length are eligible