server CLI how to fix dns resolution,proxy and to static IP

NoOp glgxg at sbcglobal.net
Thu Jun 14 19:18:24 UTC 2012


On 06/13/2012 12:55 AM, Tom H wrote:
> On Tue, Jun 12, 2012 at 7:28 PM, Rajeev Prasad <rp.neuli at yahoo.com> wrote:
> 
> 
>> i checked on web but the solutions are for GUI. i have this fresh server
>> install, which is getting its IP and DNS from DHCP. I want to put my own DNS
>> server and keep getting the IP from DHCP.
> 
> If you mean that you want to set up a dns server and have its address
> pushed to dhcp clients then add a "option domain-name-servers
> ip-address-of-your-dns-server;" line to "/etc/dhcp/dhcpd.conf" on your
> dhcp server.
> 
> 
> 
>> also later on i want to put an static IP and do not want DHCP server/client
>> on the box how to do that migration?
> 
> Edit "/etc/network/interfaces" and "/etc/resolv.conf" on your server.
> 

And if you forget that, you can always bookmark:
<https://help.ubuntu.com/12.04/serverguide/network-configuration.html>





More information about the ubuntu-users mailing list