<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2013/4/28 Jan Seiffert <span dir="ltr"><<a href="mailto:kaffeemonster@googlemail.com" target="_blank">kaffeemonster@googlemail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Brent S. Elmer Ph.D. schrieb:<br>
<div class="im">> I have lines in dnsmasq.conf for domains on my vpn like the following:<br>
><br>
> server=<a href="http://myvpn.company.com/4.1.1.1" target="_blank">myvpn.company.com/4.1.1.1</a><br>
><br>
> The problem is that it looks like after the initial connection, it<br>
> diverts to using an address like <a href="http://myvpn02.company.com" target="_blank">myvpn02.company.com</a>.<br>
><br>
> Is there a way to use a regular expression to do something like the<br>
> following:<br>
><br>
> server=myvpn[0-9]*.<a href="http://company.com" target="_blank">company.com</a><br>
><br>
<br>
</div>Maybe my regex-path is of help:<br>
<a href="http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2012q1/005615.html" target="_blank">http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2012q1/005615.html</a><br>
<br>
so you could write:<br>
server=/:myvpn[0-9]*\.company\.com:/<a href="http://4.1.1.1" target="_blank">4.1.1.1</a><br>
<br>
But there are two problems:<br>
1) It's for 2.60, it would need an update to the latest dnsmasq<br></blockquote><div><br></div><div>return -ENOCOFFEE<br><br></div><div>I already have it for 2.63, because thats the version i'm using...<br><br></div>
<div>So see attechment<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2) i don't know if it really works on the server derictive, it was written<br>
for the address deritive, that it also "handles" server is a byproduct of<br>
using the same code in the config parsing...<br>
<br>
Greetings<br>
<span class="HOEnZb"><font color="#888888">        Jan<br>
<br>
--<br>
Carpe the heck out of the diem<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>˙qɐɥ ʇɟnɐʞǝƃ ʎɐqǝ ıǝq ɹnʇɐʇsɐʇ ǝuıǝ ɹıɯ ɥɔı sɐp lɐɯ ǝʇzʇǝl sɐp ʇsı sɐp <br>'ʇɯɯɐpɹǝʌ
</div></div>