<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Setup getaddrinfo(3) to resolve IPv4 before IPv6, by configuring it
in /etc/gai.conf.<br>
<br>
If you don't have one installed by default, look under
/usr/share/doc/glibc-common-*/gai.conf (on RHEL) for a template.<br>
<br>
The relevant bits are...<tt><br>
<br>
</tt><tt>#For sites which prefer IPv4 connections change the last
line to</tt><tt><br>
</tt><tt>precedence ::ffff:0:0/96 100</tt><tt><br>
</tt><tt>...</tt><tt><br>
</tt><tt># For sites which use site-local IPv4 addresses behind
NAT there is</tt><tt><br>
</tt><tt># the problem that even if IPv4 addresses are preferred
they do not</tt><tt><br>
</tt><tt># have the same scope and are therefore not sorted
first. To change</tt><tt><br>
</tt><tt># this use only these rules:</tt><tt><br>
</tt><tt>#</tt><tt><br>
</tt><tt>scopev4 ::ffff:169.254.0.0/112 2</tt><tt><br>
</tt><tt>scopev4 ::ffff:127.0.0.0/104 2</tt><tt><br>
</tt><tt>scopev4 ::ffff:0.0.0.0/96 14</tt><br>
<br>
<br>
<div class="moz-cite-prefix">On 4/12/16 6:27 PM, Robert L. Harris
wrote:<br>
</div>
<blockquote
cite="mid:CAOXayVtgjcc8v-P3B1JPah8L9gNGUJk128pfgiRmq=LjLkVRaw@mail.gmail.com"
type="cite">
<div dir="ltr"> Ok, this is un-related to my previous IPv6
question, as this is for work and we do not have IPv6 rolled
out. We are trying to look up a signle sign on page hosted in
azure and it looks like dns is failing because my bind9 is
geting an IPv6 address for the dns server but can't get to it to
query the real DNS name.<br>
<br>
<br>
<br>
I thought I disabled IPv6 resolution and forced IPv4 only but it
doesn't seem to be working. Anyone have any ideas?<br>
<br>
{0}:/home/rharris>dig <a moz-do-not-send="true"
href="http://signin.company.com">signin.company.com</a><br>
<br>
; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>>
<a moz-do-not-send="true" href="http://signin.company.com">signin.company.com</a><br>
;; global options: +cmd<br>
;; Got answer:<br>
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id:
41491<br>
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0,
ADDITIONAL: 1<br>
<br>
;; OPT PSEUDOSECTION:<br>
; EDNS: version: 0, flags:; udp: 4096<br>
;; QUESTION SECTION:<br>
;<a moz-do-not-send="true" href="http://signin.company.com">signin.company.com</a>.
IN A<br>
<br>
;; Query time: 194 msec<br>
;; SERVER: 127.0.0.1#53(127.0.0.1)<br>
;; WHEN: Tue Apr 12 16:21:56 MDT 2016<br>
;; MSG SIZE rcvd: 47<br>
<br>
<br>
{0}:/home/rharris>dnstracer <a moz-do-not-send="true"
href="http://signin.company.com">signin.company.com</a><br>
Tracing to <a moz-do-not-send="true"
href="http://signin.company.com">signin.company.com</a>[a] via
127.0.0.1, maximum of 3 retries<br>
127.0.0.1 (127.0.0.1) Got answer [received type is cname] <br>
|\___ <a moz-do-not-send="true"
href="http://prd1.azuredns-cloud.net">prd1.azuredns-cloud.net</a>
[<a moz-do-not-send="true" href="http://azurewebsites.net">azurewebsites.net</a>]
(2a01:0111:2005:0005:0000:0000:0000:0005) send_data/sendto:
Network is unreachable<br>
* send_data/sendto: Network is unreachable<br>
* send_data/sendto: Network is unreachable<br>
* <br>
|\___ <a moz-do-not-send="true"
href="http://prd1.azuredns-cloud.net">prd1.azuredns-cloud.net</a>
[<a moz-do-not-send="true" href="http://azurewebsites.net">azurewebsites.net</a>]
(204.79.195.43) <br>
|\___ <a moz-do-not-send="true"
href="http://prd4.azuredns-cloud.net">prd4.azuredns-cloud.net</a>
[<a moz-do-not-send="true" href="http://azurewebsites.net">azurewebsites.net</a>]
(2a01:0111:2032:0001:0000:0000:0000:0005) send_data/sendto:
Network is unreachable<br>
* send_data/sendto: Network is unreachable<br>
* send_data/sendto: Network is unreachable<br>
.<br>
.<br>
.<br>
<til failure><br>
<br>
<br>
<br>
<br>
Anyone have any ideas how to resolve this?<br>
<br>
<br>
Robert<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Ale mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ale@ale.org">Ale@ale.org</a>
<a class="moz-txt-link-freetext" href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a>
See JOBS, ANNOUNCE and SCHOOLS lists at
<a class="moz-txt-link-freetext" href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a>
</pre>
</blockquote>
<br>
</body>
</html>