<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1901482392;
mso-list-type:hybrid;
mso-list-template-ids:-1386461494 -675931822 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-number-format:alpha-upper;
mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:29.25pt;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:65.25pt;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:101.25pt;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:137.25pt;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:173.25pt;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:209.25pt;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:245.25pt;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:281.25pt;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:317.25pt;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I’m hope what I want is possible with dnsmasq, but if it is I’m out of ideas. Would love some help.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>What I want is my dhcp clients to:<o:p></o:p></p><p class=MsoListParagraph style='margin-left:29.25pt;text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>A)<span style='font:7.0pt "Times New Roman"'> </span></span><![endif]>get assigned an IP via DHCP from MAC matching on the dnsmasq server (using /etc/ethers + /etc/hosts)<o:p></o:p></p><p class=MsoListParagraph style='margin-left:29.25pt;text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>B)<span style='font:7.0pt "Times New Roman"'> </span></span><![endif]>have forward/reverse DNS on my local network (via dnsmasq)<o:p></o:p></p><p class=MsoListParagraph style='margin-left:29.25pt;text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>C)<span style='font:7.0pt "Times New Roman"'> </span></span><![endif]>have a full FQDN via ‘hostname’ command<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’ve got A + B working now. Nothing I seem to do will give me an FQDN on my clients, ‘hostname’ only returns the node name rather than the FQDN. This breaks a lot of software that is expecting and FQDN from that. If I can’t get FQDN via DHCP then I’m going to have to ditch dnsmasq and go for statically assigned IPs and break out Bind which I don’t want to do as this is a dynamic test network that will change a lot.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My target client should be assigned an IP of 192.168.56.5 and a name of ‘test2.example.com’, all by dnsmasq. With my current setup , it does get .5 and does get ‘test2’. But if I try setting an FQDN in either /etc/hosts or /etc/ethers dnsmaq doesn’t seem to like that, the MAC matching appears to break, doesn’t give me .5 and it yells at me with the following:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> not giving name test2.example.com to the DHCP lease of 192.168.56.173 because the name exists in /etc/hosts with address 192.168.56.5<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’ve tried every combination of FQDN and short name within /etc/ethers and /etc/hosts I can think of, but nothing works. I’ve seen references to using dhcp-host lines in my dnsmasq.conf file, but that is not a desired solution for me at this time. (But if that’s all that works.. .oh well).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any ideas? Thanks<o:p></o:p></p><p class=MsoNormal>Chris.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Currently using dnsmasq v2.45 (via Red Hat rpm)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My /etc/dnsmasq.conf (which runs on 192.168.56.2):<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>log-dhcp<o:p></o:p></p><p class=MsoNormal>bogus-priv<o:p></o:p></p><p class=MsoNormal>dhcp-authoritative<o:p></o:p></p><p class=MsoNormal>dhcp-option=option:router,192.168.56.1<o:p></o:p></p><p class=MsoNormal>dhcp-range=192.168.56.128,192.168.56.235,12h<o:p></o:p></p><p class=MsoNormal>domain-needed<o:p></o:p></p><p class=MsoNormal>domain=example.com<o:p></o:p></p><p class=MsoNormal>expand-hosts<o:p></o:p></p><p class=MsoNormal>local=/example.com/<o:p></o:p></p><p class=MsoNormal>read-ethers<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My /etc/ethers:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>00:0c:29:72:50:92 test2<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My /etc/hosts:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>127.0.0.1 localhost.localdomain localhost<o:p></o:p></p><p class=MsoNormal>192.168.56.5 test2<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>--<o:p></o:p></p><p class=MsoNormal>Chris Snyder<o:p></o:p></p><p class=MsoNormal>SRA Senior Linux Geek<br>Energystar Network O+M Team<br>ESTAR Issues: <a href="https://estar18.energystar.gov/"><span style='color:blue'>https://estar18.energystar.gov/</span></a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>