On 4/3/22 21:11, Russ Auld wrote: > You just need to make additional entries in the networks database, one for > each additional search domain. > > Example entries: > "a.domain.com","10.10.1.0","255.255.255.0",,,,,,,,,,,,,,"a.domain.com",,, > "b.domain.net","10.10.2.0","255.255.255.0",,,,,,,,,,,,,,"b.domain.net",,, > "c.domain.us","10.10.3.0","255.255.255.0",,,,,,,,,,,,,,"c.domain.us",,, > > The "netname", "net", and "mask" are required but you can put in any values. > Set the "domain" field to the value you want to have in the search line. > tabch netname="a.domain.com" networks.net="10.10.1.0" > networks.mask="255.255.255.0" networks.domain="a.domain.com" > > After you run "makedhcp -n" the dhcpd.conf file will contain the search line: > option domain-search "site.com", "a.domain.com", "b.domain.net", > "c.domain.us"; > > Remember that the first entry is the "domain" from the "site" table. > >
OK I see now, I was trying to add the different sub-domains into the same field in a single network definition, like this: "a.domain.com","10.10.1.0","255.255.255.0",,,,,,,,,,,,,,"a.domain.com, b.domain.com, c.domain.com",,, The IP subnet info is purely virtual here I guess, it doesn't need to exist? > >> On 04/01/2022 6:13 AM Roosen, Nicolas <nicolas.roo...@hpe.com> wrote: >> >> >> On Sat, 2022-03-12 at 12:01 -0500, Russ Auld wrote: >>> This definitely works - I've done it myself. >>> >>> Can you show us your networks table? >>> >>> >> >> Right now it is empty of any domain, because I couldn't find the proper >> syntax to add multiple domain names in it. >> >> Could you share your example which works? >> >> Thanks. >> >>> >>>> On 03/11/2022 6:41 AM Roosen, Nicolas <nicolas.roo...@hpe.com> >>>> wrote: >>>> >>>> >>>> On Thu, 2022-03-10 at 18:17 +0100, Thomas HUMMEL wrote: >>>>> >>>>> >>>>> On 10/03/2022 11:26, Roosen, Nicolas wrote: >>>>>> Hello, >>>>>> >>>>>> I'm having a hard time to get our nodes /etc/resolv.conf search >>>>>> option >>>>>> correctly setup. >>>>> >>>>> Hello, >>>>> >>>>> just to be sure : are you sure your NetworkManager settings are >>>>> correct >>>>> (if the nic is NM managed) ? There is a quite complex >>>>> combinatorics >>>>> about if, how, and by who resolv.conf is handled which may or may >>>>> not >>>>> involve what's received via DHCP (see dns and rc-manager for >>>>> start in >>>>> NetworkManager.conf man) >>>> >>>> Hello, my main concern here is to have xCAT generate a proper >>>> dhcpd.conf file with a custom "option domain-search". >>>> >>>> If I setup the file by hand, it works on the client. >>>> >>>> But I couldn't find a xCAT way of doing this. >>>> >>>> >>>> _______________________________________________ >>>> xCAT-user mailing list >>>> xCAT-user@lists.sourceforge.net >>>> INVALID URI REMOVED >>>> tinfo/xcat-user__;!!NpxR!0BMrwk9rq2- >>>> tCRhqEKSmNvMt6VChWuNWzLFgFURqC7ffhVXdr4aQLhu7Baj5FAME$ >> >> >> _______________________________________________ >> xCAT-user mailing list >> xCAT-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/xcat-user > > > _______________________________________________ > xCAT-user mailing list > xCAT-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xcat-user _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user