平衡点


2018/07/26

_ dnsmasq での問い合わせ先の変更

某所に VPN で接続した際に, 接続先の DNS の反応が遅いせいで名前解決ができず, ネットワークアクセスで困る事が頻発していて, これどうにかならんのか, と.

とか言うてた訳ですが.

手元での名前解決には dnsmasq を使っていたので, dnsmasq.conf あたりに

server=/hoge.hero.fuga.ac.jp/8.8.8.8

みたいに書いておくと hoge.hero.fuga.ac.jp の名前解決の際には 8.8.8.8 を使ってくれるようになるようだ(当然 IP はダミーです, はい).

More specific domains take precedence over less specific domains, so:
--server=/google.com/1.2.3.4   --server=/www.google.com/2.3.4.5  will
send queries for *.google.com  to  1.2.3.4,  except  *www.google.com,
which will go to 2.3.4.5

The  special server address '#' means, "use the standard servers", so
--server=/google.com/1.2.3.4  --server=/www.google.com/#  will   send
queries  for  *.google.com  to  1.2.3.4, except *www.google.com which
will be forwarded as usual.

man にありました. これで快適快適.


連絡先など
最近の日記
一覧
2006|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|02|03|04|08|09|10|11|12|
2013|01|02|03|04|05|06|08|09|10|11|12|
2014|01|02|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|09|10|
2016|02|03|
2017|01|02|03|05|06|07|09|11|12|
2018|03|06|07|10|11|12|
2019|01|02|03|04|05|07|10|12|
2020|01|02|03|04|05|08|09|10|11|12|
2021|01|02|03|05|06|07|08|09|11|12|
2022|01|02|03|04|05|06|08|10|11|12|
2023|02|03|04|06|08|09|11|12|
2024|01|02|03|
Back to Top ▲