New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Internet, Networking, and Wireless Discussion of networking, internet, and wireless including Apple's Airport products.

Preventing DNS falling through to default result


Post Reply New Thread Subscribe

 
Thread Tools
humbletech99

 
Member Since: Dec 05, 2011
Posts: 4
humbletech99 is on a distinguished road

humbletech99 is offline
Hi,

I've got a MacBook Pro with Mac OS X 10.6.8 Snow Leopard.

The problem I'm having is where work's DNS servers hand out a default result when it can't resolve a DNS name.

Is there a way to catch and prevent this behaviour to fail when a DNS name doesn't exist instead of redirecting me back to the same site all the time?
QUOTE Thanks
MacsWork

 
MacsWork's Avatar
 
Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,136
MacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really nice
Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3

MacsWork is offline
Use a public DNS server like Google's DNS 8.8.8.8 or 8.8.4.4
QUOTE Thanks
humbletech99

 
Member Since: Dec 05, 2011
Posts: 4
humbletech99 is on a distinguished road

humbletech99 is offline
I do when I'm not in the office but I need to resolve legitimate internal names...
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
Add your work DNS servers in System Preferences > Network (select the if you're using there), then Advanced > DNS.

Then add the search domains. This should work, it works for me when I'm in the office.

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
humbletech99

 
Member Since: Dec 05, 2011
Posts: 4
humbletech99 is on a distinguished road

humbletech99 is offline
You guys are misunderstanding. I am a senior engineer. I know to set baby stuff like DNS servers and search paths etc.

The problem is that the work DNS servers - which I have to use to resolve internal only servers - give a default result for unknown names when queried (eg for a typo or if the recursive query didn't come back in time).

I need to find a way to catch the answer when it's a default and set it to failed instead which is the normal DNS behaviour.
QUOTE Thanks
MacsWork

 
MacsWork's Avatar
 
Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,136
MacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really nice
Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3

MacsWork is offline
You are an engineer and are looking for DNS to resolve typos?

From your OP it sounds like your work DNS serves are the issue not the MBP.

sudo dscacheutil -flushcache will clear the local DNS cache on the MBP.

After that you might just have an internal DNS problem. Are they windows DNS servers running AD integrated zones that don't allow dynamic updates?

What results do you get with nslookup when querying the internal DNS servers?
QUOTE Thanks
humbletech99

 
Member Since: Dec 05, 2011
Posts: 4
humbletech99 is on a distinguished road

humbletech99 is offline
Yes the work DNS servers are the issue and outside of my control in the corporate structure.

Hence why I'm considering a clever workaround hack to try to catch and except this behaviour to override it.

I've already got some of it caught in various places in my shell profile but other commands and my browser will resolve and be automatically redirected to the default fallback result without me being able to intercept it which is why I'm trying to figure out if there is any system wide way of affecting the local resolver onm y Mac to work around this.
QUOTE Thanks
MacsWork

 
MacsWork's Avatar
 
Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,136
MacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really nice
Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3

MacsWork is offline
So the DNS problem you are having is related to .local lookups?

Network browsing or intranet? Are you trying to traverse subnets?

The .local multicasting from the Mac is limited to one subnet.

Look at some of these.
QUOTE Thanks

Post Reply New Thread Subscribe


« Another "You are not connected to the internet" issue... | Connection timeout trouble »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Help needed ASAP before I do a fresh install of OS X Doug b OS X - Operating System 19 07-09-2010 04:08 AM
DNS problem in OSX Server 10.6 charlieatlantic OS X - Operating System 2 10-07-2009 03:57 PM
Change in default "open with" applications revert back after reboot kousik OS X - Apps and Games 3 05-07-2009 04:10 AM
Mac Os X Connecting To Internet krish858 Switcher Hangout 12 05-31-2008 11:00 AM
Help-Mac OS X 10.5.1, PPPOE (Internet Issue) roryta Switcher Hangout 21 04-09-2008 10:45 PM

All times are GMT -4. The time now is 08:02 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?