XYMer's Home away from Home

When http://bbs.xlr8yourmac.com is down (i.e. always)
It is currently Sun Apr 23, 2017 11:27 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue Feb 14, 2017 11:27 pm 
Offline
Master

Joined: Sun Apr 20, 2008 5:24 am
Posts: 9589
Location: North of the State of Jefferson
So I discovered that DNS servers at 4.2.2.2 and their kin are now hosting a "sitefinder" like advertising service to break the Internet when you enter an invalid domain, rather than doing the right thing and returning NXDOMAIN:
dig adsfdaskflkadsasdwetregdsfg34.eryrfdgsdfg

; <<>> DiG 9.8.3-P1 <<>> adsfdaskflkadsasdwetregdsfg34.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57797
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;adsfdaskflkadsasdwetregdsfg34.eryrfdgsdfg IN A

;; ANSWER SECTION:
adsfdaskflkadsasdwetregdsfg34.eryrfdgsdfg 10 IN A 104.239.213.7
adsfdaskflkadsasdwetregdsfg34.eryrfdgsdfg 10 IN A 198.105.244.11

But that's not the problem...well, yeah, I mean it is, and I hope Level3 sticks a red hot fork in its eye, but that's not what this post is really about.

After that I figured I'd better install a new local recursive DNS resolver so I wouldn't be at the mercy of stupid crap that other DNS providers routinely decide to do. Unfortunately attempting to run configure on the BIND source tree failed with this error:
checking for libxml2 library... configure: error: xml2-config returns badness

Fortunately the solution is pretty simple. When you configure pass in an argument to the libxml2 path, like this:
./configure --with-libxml2=Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2

NOTE: If you're actually doing this you may want to compile an up-to-date OpenSSL for it and pass in a prefix for the installation directory, like this (after building and installing OpenSSL in /usr/local/bind/openssl):
./configure --with-openssl=/usr/local/bind/openssl --prefix=/usr/local/bind/ --with-libxml2=Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2

Anyway, I hope that helps someone attempting to build BIND 9.11.0-P3 on OS X 10.11.

- Anonymous


Top
 Profile  
 
PostPosted: Wed Feb 15, 2017 7:39 pm 
Offline
Benevolent Dictator
User avatar

Joined: Mon Apr 21, 2008 2:03 am
Posts: 14361
How did you find that out?


Top
 Profile  
 
PostPosted: Wed Feb 15, 2017 9:51 pm 
Offline
User avatar

Joined: Thu May 15, 2008 8:13 pm
Posts: 9168
Location: Caught between the moon and NYC
Its pretty easy to notice when you're taken to a marketing website when you accidentally type something wrong. The Comcast DNS servers actually put Comcast's logo on the page, or at least they did when they started. Their little marketing droids were proud of breaking NXDOMAIN.

I'm giving serious consideration to getting one of those NUCs and setting up a Linux instance on it for NTP, DNS, and other fun stuff. For the moment though I'm content playing around with my ER-X. It isn't nearly as nice, but it's positively nifty for under $50.


Top
 Profile  
 
PostPosted: Thu Feb 16, 2017 10:46 am 
Offline
Benevolent Dictator
User avatar

Joined: Mon Apr 21, 2008 2:03 am
Posts: 14361
Ah, thanks.


Top
 Profile  
 
PostPosted: Thu Feb 16, 2017 12:42 pm 
Offline
Master

Joined: Sun Apr 20, 2008 5:24 am
Posts: 9589
Location: North of the State of Jefferson
I noticed the broken NXDOMAIN when I queried home. from your other question.

If home wasn't a TLD, this should have returned NXDOMAIN. Instead, I got an A record, so I tested some more nonsensical domains. Then I realized I was using L3's name servers.

- Anonymous


Top
 Profile  
 
PostPosted: Thu Feb 16, 2017 12:59 pm 
Offline
Benevolent Dictator
User avatar

Joined: Mon Apr 21, 2008 2:03 am
Posts: 14361
AHA, thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group