Name resolution for kickstart

Junk junk at therobinsonfamily.net
Tue Oct 7 23:16:43 UTC 2014


On 6 October 2014 22:29:56 GMT+01:00, CLOSE Dave <Dave.Close at us.thalesgroup.com> wrote:
>I wrote:
>
>> We have a number of internal machines which run a local nameserver.
>> It's primarily a relay for the wider net but does a few other things
>> as well. So DHCP is configured to specify 127.0.0.1 as the nameserver
>> address for these machines.
>>
>> Of course, that is also what kickstart is told when it connects and
>> begins operation. But, of course, kickstart is not running a local
>> nameserver. This means that name resolution for the "repo" lines in
>> the kickstart file doesn't work and installations fail.
>>
>> The only workaround I've found is to use IP addresses in the "repo"
>> lines, not the associated names. But this isn't ideal: addresses can
>> change and sites using multiple addresses can't be properly matched.
>>
>> Is there a way I can tell kickstart not to use the resolver specified
>> by DHCP but instead use one that I specify in the kickstart file?
>
>On 10/03/2014 08:40 PM, Tim wrote:
>
>> Specify the details on your DHCP server.  Actually sending 127.0.0.1
>> is an odd thing, because it means "yourself," and I'd only send such
>> data to those specific machines.  For everything else, give a
>> specific DNS server address for one of those machines.  Do all of
>> that on the DHCP server.  Have some specific machine entries (your
>> servers), and separate configuration for a range of dynamic client
>> machines.
>
>Thanks for the reply. But I understand how to configure DHCP. As I
>wrote
>above, "DHCP is configured to specify 127.0.0.1 as the nameserver
>address for these machines". Only for those machines.
>
>The difficulty is that, during kickstart the DHCP configuration is
>wrong. I'd much rather not have to use a different configuration for
>kickstart than for normal operation. While I can do that for an initial
>installation, it is far trickier if the machine needs to be
>re-installed
>later. A re-installation ought to be as simple and selecting PXE during
>boot. There shouldn't be a need to change the DHCP configuration before
>and after.

I think you might be better setting it up a slightly different way. Get the DHCP server to send a normal DNS server for machines installing and get the kickstart file to configure the machines to ignore the DNS server from the dhcp server (PEERDNS=no) and use DNS1=127.0.0.1 instead. 
--
Junk


More information about the users mailing list