[Dnsmasq-discuss] Simple question how to give multiple names to one host?

Simon Kelley simon at thekelleys.org.uk
Tue Feb 9 21:39:15 GMT 2010


Chris G wrote:
> On Mon, Feb 08, 2010 at 06:57:32PM -0600, richardvoigt at gmail.com wrote:
>> On Mon, Feb 8, 2010 at 3:59 PM, Simon Kelley <simon at thekelleys.org.uk> wrote:
>>> Chris G wrote:
>>>> On Sun, Feb 07, 2010 at 08:16:42PM +0000, Simon Kelley wrote:
>>>>> Chris G wrote:
>>>>>> I have a dnsmasq.conf file with the following at the end:-
>>>>>>
>>>>>>     dhcp-host=chris,192.168.1.4
>>>>>>
>>>>>> How do I get 192.168.1.4 to have some other names as well (for apache2
>>>>>> virtual hosting)?
>>>>>>
>>>>> Equally simple answer:
>>>>>
>>>>> cname=<some other name>,chris
>>>>>
>>>>> You can have as many CNAMEs as you like for the primary name.
>>>>>
>>>> Brilliant, thanks, it just wasn't very easy to find in the dnsmasq man page.
>>>>
>>> I've added a pointer to --cname on the section on --dhcp-host.
>> It might also be worthwhile using the word "alias" in the description
>> of --cname, because that's one of the most common search terms
>> (AFAICT).
>>
> Yes, I tried searching for 'alias' in the man page when I was trying
> to work out how to do this.
> 

I worked "alias" in there too.

http://www.thekelleys.org.uk/dnsmasq/test-releases/dnsmasq-2.53test6.tar.gz

Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list