RE: dhcdpd supercede option
Stuart Naylor
Thu Jul 03 15:43:16 2014
Sorry Roy.
I am playing with samba4 and just have the VM hanging off a broadband modem / router.
Normally yes, absolutely. I just want to get the IP but set up a realm also I am going to share the VM so it's not normal but good for a demo.
Maybe a lot of this is me being a debian/ubuntu guy playing with arch linux, but I do really like arch :)
If I do that resolvconf writes out a blank resolv.conf
It must be the arch linux resolv order that is confusing me.
I am just running a test and have a VM running arch.
I only want the IP address of from the broadband router / modem I am running from.
Its just a test and would like to keep it this way as it makes sharing the VM easy for others networking.
/etc/hosts is set up like this
#*****************************************************************************************
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost samba1.office.samba4.lan samba1
::1 localhost.localdomain localhost samba1.office.samba4.lan samba1
#*******************************************************************************************
/etc/dhcpcd.conf
#*******************************************************************************************
#option domain_name_servers domain_name domain_search host_name
#*******************************************************************************************
I commented out pulling the domain and host name.
I thought resolv.conf would then just grab the info from /etc/hosts
Its empty and if I do a
hostname -f
localhost.localdomain
hostname -d
localdomain
hostname -i
127.0.0.1 127.0.0.1
hostname
localhost
If I just want to grab the ip address handed out by a dhcp server and set the hostname and domain to local of myhostname and mydomain.
How do I do it?
I have posted on the arch linux forum as I was expecting the /etc/hosts to come through to resolv.conf
Apols
Stuart
-----Original message-----
> From:Roy Marples <roy@xxxxxxxxxxxx>
> Sent: Thursday 3rd July 2014 15:34
> To: dhcpcd-discuss@xxxxxxxxxxxx
> Subject: Re: [dhcpcd-discuss] dhcdpd supercede option
>
> Hi Stuart
>
> On 03/07/2014 14:24, Stuart Naylor wrote:
> > Apols to ask this but I always get confused with dhcpcd when it comes
> > to overwriting return dhcp options.
> >
> > dhcdpd uses supercede option value.
> >
> > If I want to keep the IP but overwrite
> >
> > domain_name_servers = 127.0.0.1
> > domain_name = mydomain
> > domain_search = mydomain
>
> Instead of overwriting your static values, how about don't request them
> in /etc/dhcpcd.conf?
>
> > Its prob really easy apols for being a noob.
>
> The noob fails to ask questions - you asked one :)
>
> Roy
>
>
Archive administrator: postmaster@marples.name