<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 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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 bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Quick suggestion: how hard would it be to enhance the 'alias' option to understand interface names, as well as IP addresses? In other words, be able to write something like:<o:p></o:p></p><p class=MsoNormal>alias = eth0, br0<o:p></o:p></p><p class=MsoNormal>or<o:p></o:p></p><p class=MsoNormal>alias = eth0, 192.168.1.10<o:p></o:p></p><p class=MsoNormal>instead of<o:p></o:p></p><p class=MsoNormal>alias = 86.30.247.112, 192.168.1.10<o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>This would be particularly useful if it could transparently cope with an interface's IP address changing, e.g. a WAN interface with a dynamic IP address.<br><br>Some background: I run a few services on my server at home (e.g. asterisk) where latency matters. The rest is hosted, along with my DNS records. Without an 'alias' line like those above, DNS lookups will return the public IP address of my router to my LAN clients too, and so they'll send all the traffic through the router. <br><br>While that's rather inefficient (routing traffic between two nodes on the same Gb network through a soho router), it also means that ports I purposely don't forward from the public internet also don't get forwarded for LAN clients.<br><br>Luckily I'm running custom router firmware and have a static IP, so I'm able to add that line manually to dnsmasq.conf on the router. But it'd be nice if distributions could incorporate something like this as standard, to compliment port forwarding/'DMZ server'-type features.<br><br>Just a thought,<br><br>- Paul <o:p></o:p></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Maybe I’m understanding this incorrectly but it sounds like you are using the same FQDN inside your lan and also outside on the wan/internet. If this is the case just add entries to your host file with the local addresses. When connected/resolving locally you will get the local address and when connected to the internet you will get the address of your router.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Don<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p></div></body></html>