Recommended Posts

Interesting one for you all, anyone know me what is going on?

 

Background: I have just purchased a new mac - an entirely new experience for me actually, having only had PC's before.

 

I have noticed that the mac won't resolve my hostnames on my pfsense local DNS, not completely anyway. A little explanation:

 

Hostname 1: pfsense

Works on both windows and mac when typing in the url bar of a browser.

 

Hostname 2: TEXT-10

Only works on windows based browser when typed in the url bar. Mac just sends me off on a google search.

 

Could this be because of the '-' in the second hostname? I don't know why it wouldn't resolve one when it's perfectly happy with the other.

 

I'm probably missing some information for a diagnosis but since I don't know what im looking for I thought I would keep it relatively short and sweet. Happy to provide any more information if anyone has any ideas :)

 

Cheers all.

 

rancid

 

 

Link to comment
https://www.neowin.net/forum/topic/1199233-local-dns-mac-differences/
Share on other sites

What is the fqdn of the hosts?  What is the domain your mac is in?

 

nslookup is a valid tool on mac

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/nslookup.1.html

 

I would suggest you use it to validate if a fqdn resolves or not from the mac.

 

- is a valid character for host names be it dns or even netbios only.  Atleast in MS specification of netbios names.  I am not aware if macs broadcast like a windows box will do? for a host name..

 

So simple sniff shows that windows will broadcast for something that is not resolvable.. So you see here that I put testhostname in my browser address bar, my machine queries my dns adding the domain local.lan - dns returns hey can not find that, so then the box broadcasts for the hostname

 

post-14624-0-42908100-1391557703.png

 

post-14624-0-60995500-1391557858.png

 

I would do the same thing if trying to determine what your mac does when you put your host name in the browser window to find out how its its asking, and where its asking and if it broadcasts for it, etc.

Update: There seems to be a well known issue with macs accessing windows (non-mac) hosts by hostname -and not much by way of obvious solution. I am pushed for time at the moment so I have just stuck an entry into the hosts file for the time being. This has sorted the resolving. Not very elegant though and only a temp solution so I will look into it further in the not too distant future.

 

FYI I can successfully ping TEXT-10.local - fairly sure I tried that before the hosts entry!.

 

Further troubleshooting to follow.

 

Cheers,

 

rancid

I have a similar problem - in my case it wasn't a DNS problem, but a Safari glitch. Safari doesn't seem to recognise non FQDN addresses, instead just redirecting to a Google search as if you were looking for whatever word you were typing.

For example, if I type "lightwave" it will take me to a google search for home, rather than http://lightwave. I guess it's just a downside to having a combined address and search bar.

Pinging lightwave will always work fine, however.

Sounds like a little edit of the hosts file may work for you too.

 

Just remember you will have to manually update the IP if/when it changes, you will also have to do this on all macs individually.

 

Not ideal, hence wanting to find the time to further look into it.

 

I don't think it's a safari issue as such, try out the hosts file edit and see if it works. Either way, needs more looking into what is going on as per budman's suggestion above to see what the mac is actually doing.

 

I will keep this thread updated as I find out more info.

 

Cheers,

 

rancid

Why would you be using host files?  Just put your machines into your dns - I am guessing your routers dns is just blows chucks?  Then run your own - its quite simple to just download BIND and run a real dns server, and support of dynamic updates from your clients.

 

Or just grab http://tftpd32.jounin.net/ it has dhcp server, dns, etc.. etc.. It allows for static dhcp (reservations) etc..  So your machines would always get the same IP - and therefore you have no need to change any "host" file.

OS X can do NetBIOS name lookups, but I'm pretty sure it keeps it separate from normal DNS lookups, so something like connecting to an SMB share will work, but trying the same name in Safari would probably fail. That said, Safari doesn't seem to accept plain hostnames (falls back to Google search), you need to provide a FQDN for them (Yet another reason to use a central DNS setup)

@budman

My current problem is understanding. I literally do not understand what is going on, and as I have said time to learn is limited at the moment.

As far as I was aware, and I think I mentioned previously, I am running my own DNS from pfSense.

@the_decryptor

That sounds like what a brief Google search seemed to be saying yesterday. Note though that that safari does work just entering 'pfsense' (not a FQDN). This leads me to think that something else is going on.

I just tried Safari again, seems it will connect to a plain hostname if it's already in the history, otherwise it defaults to a search (Although you can force it via the dropdown, one of the options is "Go to")

So for me, "openwrt" goes to Google, "openwrt.lan" loads my router page, but going to "openwrt" manually then stops Safari doing a search next time. Firefox on the other hand works fine since it tries hostnames first, then doing a search if it fails.

Well perfect, if your running pfsense - just create whatever dns records you need

 

post-14624-0-65105400-1392040458.png

 

If pfsense is also your dhcp server - then have it register those entries

 

post-14624-0-71948900-1392040553.png

 

I would also suggest the bottom two checkmarks - so that your not forwarding say hostname to your isp when there is no domain on it, and would last one no reason to do rfc1918 ptr upstream.

So - didn't have safari installed..  Grabbed it so could do this simple test, see my tplink alias from my dns listing in the above post

 

post-14624-0-69242500-1392041694.png

 

keep in mind, my box is in the local.lan domain - and will add it to search..

 

So here is sniff of it finding that.. I flushed my local cache with ipconfig /flushdns and then opened safari again

 

post-14624-0-13391300-1392041535.png

 

Notice how it does a fqdn lookup vs just netbios broadcast..  My machine is in that domain, and local.lan is in the search suffix list

 

post-14624-0-39393800-1392041624.png

Cheers budman, that sorted it. It makes sense too! The entries weren't being entered into my DNS in the first place!

 

I do have a question regarding the host override image you posted though, why would I need these? I don't have any entries in this section. Is it because you aren't using pfSense as your dhcp server?

 

Cheers,

 

rancid

Many of my devices are not dchp, some are that are in there are with reservations.  For example that brother entry is my printer - its static, so I put a entry into dns for it.  I have aliases for some devices, etc.

 

Doesn't hurt anything to have the entries in there even if they are pulling IPs from dhcp - But since I assign most of my devices specific IPs either static on the device or through a reservation I like to have the dns in there so it resolves to the IP be it there is a dhcp lease or not active for that device.

  • 8 months later...

Im having problems similar to this again budman, could I trouble you for some assistance?
 
My hostnames are not resolving in my browser again. I have double checked my pfsense setup is as you depicted above, my clients are pointing towards the right DNS address for the pfsense box but I just keep getting google!
 
Extract from wireshark capture:

 

client is .157 DNS is .250.

 

* to be precise I used to just type in the hostname in the browser command line and be redirected to whatever full address the host is serving

 

for example type: "pfsense" end up at "https://pfsense/" automatically. Why, when I type a hostname am I being redirected to a google search of said hostname now?!

 

All servers are assigned by dhcp and the "Register DHCP static mappings in DNS forwarder" is ticked.

 

Any ideas?

 

Cheers,

 

rancid

Why would you think hostname should resolve? That is not fully qualified. That is BAD habit to think that a host name should resolve like that.

from a cmd line using say did or nslookup do your hosts resolve? Where is extract from wireshark? I don't see anyting?

Now pfsense will answer those, if they are in your host file in pfsense, and those get added in via different ways, over ride, dhcp reservation, etc.

post-14624-0-03194300-1415400040.png

But what I would suggest you do is just create a bookmark that is FQ to your pfsense, or any other hosts you want to resolve on your local network - and use FQDN when you want to access stuff.

post-14624-0-27898000-1415400192.png

post-14624-0-41353300-1415400198.png

So validate that fqdn resolves

C:\>ping pfsense.local.lan

Pinging pfsense.local.lan [192.168.1.253] with 32 bytes of data:

Reply from 192.168.1.253: bytes=32 time<1ms TTL=64

When you use fqdn does it resolve??

Yeah, always try to use the FQDN of a device, because it stops Safari (And probably every other browser now) doing searches for them.

Safari and Firefox show the exact same behaviour now, entering a bare hostname does a Google search. If you want to connect you either need to tell it that it's a hostname (So they look it up via DNS) or use the FQDN variant.

  On 07/11/2014 at 22:44, BudMan said:

Why would you think hostname should resolve? That is not fully qualified. That is BAD habit to think that a host name should resolve like that.

from a cmd line using say did or nslookup do your hosts resolve? Where is extract from wireshark? I don't see anyting?

Now pfsense will answer those, if they are in your host file in pfsense, and those get added in via different ways, over ride, dhcp reservation, etc.

attachicon.gifhostfilepfsense.png

But what I would suggest you do is just create a bookmark that is FQ to your pfsense, or any other hosts you want to resolve on your local network - and use FQDN when you want to access stuff.

attachicon.gifshortcut.png

attachicon.gifinbrowser.png

So validate that fqdn resolves

C:\>ping pfsense.local.lan

Pinging pfsense.local.lan [192.168.1.253] with 32 bytes of data:

Reply from 192.168.1.253: bytes=32 time<1ms TTL=64

When you use fqdn does it resolve??

I think that because that is how it has always worked up until recently.

 

Using nslookup from my mac the hostname 'pfsense' resolves. Apologies the wireshark screen grab apparently didn't work. Sending this from my mac atm so don't have it on here. Will edit the original post later when I have access to my pc again.

 

I do have bookmarks setup, I just tend to use keyboard and type where I want to go in the command bar. No reason for this, just the way I apparently prefer to navigate.

 

From my mac (and presumably everything else) both 'ping pfsense' and 'ping FQDN' work.

 

 

  On 08/11/2014 at 02:03, The_Decryptor said:

Yeah, always try to use the FQDN of a device, because it stops Safari (And probably every other browser now) doing searches for them.

Safari and Firefox show the exact same behaviour now, entering a bare hostname does a Google search. If you want to connect you either need to tell it that it's a hostname (So they look it up via DNS) or use the FQDN variant.

 

When you say 'now', has there been a change in the way the browser handles this recently? I use firefox and as I said, previously, I had always got to the server using just the hosname.

 

It's really not a massive issue, it's just I had gotten used to that way of working, and I thought I had messed up something in my setup to cause the change!

 

Cheers,

 

rancid

I'm running a nightly build so I see the changes a few months before they hit the release build :laugh: It's coming though, should be in 34 or 35.

Firefox does auto-complete to the FQDN variant if you've visited it though, I had to manually change it back to the bare hostname to get it to do the search (And even then it asked if I meant to connect to a device by that name)

Does not matter what a browser does or doesn't do for searching or autocompletion. Using just hostname to resolve is BAD habit!! Be it use to work or not, its still a bad habit - FQDN should always be used. To be honest normal dns should not resolve that since its not fully qualified. Now you would have to resolve on netbios resolution either via wins or broadcast, etc.

I would suggest you start typing out your FQDN ;)

Thanks both of you. Perhaps I should use this to get out of my bad habit!

 

@Budman

Why do you have a subdomain for your lan? I think mine is just hotname.localdomain, you seem to be using hostname.local.lan. Just curious.

 

Cheers,

 

rancid

so you did a query for pfsense.localdomain.  And got a response.  So did add a search suffix, is it correct is the ??

 

is localdomain your domain?  That is single label domain and again a bad habit..  Use something better like pfsense.local.domain or pfsense.home.localdomain or pfsense.home.lan or pfsense.rancid.lannet, when you use single label your at a tld, and can have issues just using tld.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • LibreOffice 25.2.4 by Razvan Serea LibreOffice is the free power-packed Open Source personal productivity suite for Windows, Macintosh and Linux, that gives you six feature-rich applications for all your document production and data processing needs: Writer, Calc, Impress, Draw, Math and Base. Support and documentation is free from our large, dedicated community of users, contributors and developers. You, too, can also get involved! Choosing Between LibreOffice Still and LibreOffice Fresh: LibreOffice Still is a good choice if you value stability, a longer support cycle, and a more conservative approach to software updates. It's suitable for businesses and organizations where reliability and compatibility are crucial. LibreOffice Fresh is ideal if you're an enthusiast or an early adopter who wants to stay on the cutting edge of LibreOffice development and is willing to accept more frequent updates and occasional minor issues. Features: Writer is the word processor inside LibreOffice. Use it for everything, from dashing off a quick letter to producing an entire book with tables of contents, embedded illustrations, bibliographies and diagrams. The while-you-type auto-completion, auto-formatting and automatic spelling checking make difficult tasks easy (but are easy to disable if you prefer). Writer is powerful enough to tackle desktop publishing tasks such as creating multi-column newsletters and brochures. The only limit is your imagination. Calc tames your numbers and helps with difficult decisions when you're weighing the alternatives. Analyze your data with Calc and then use it to present your final output. Charts and analysis tools help bring transparency to your conclusions. A fully-integrated help system makes easier work of entering complex formulas. Add data from external databases such as SQL or Oracle, then sort and filter them to produce statistical analyses. Use the graphing functions to display large number of 2D and 3D graphics from 13 categories, including line, area, bar, pie, X-Y, and net - with the dozens of variations available, you're sure to find one that suits your project. Impress is the fastest and easiest way to create effective multimedia presentations. Stunning animation and sensational special effects help you convince your audience. Create presentations that look even more professional than the standard presentations you commonly see at work. Get your collegues' and bosses' attention by creating something a little bit different. Draw lets you build diagrams and sketches from scratch. A picture is worth a thousand words, so why not try something simple with box and line diagrams? Or else go further and easily build dynamic 3D illustrations and special effects. It's as simple or as powerful as you want it to be. Base is the database front-end of the LibreOffice suite. With Base, you can seamlessly integrate into your existing database structures. Based on imported and linked tables and queries from MySQL, PostgreSQL or Microsoft Access and many other data sources, you can build powerful databases containing forms, reports, views and queries. Full integration is possible with the in-built HSQL database. Math is a simple equation editor that lets you lay-out and display your mathematical, chemical, electrical or scientific equations quickly in standard written notation. Even the most-complex calculations can be understandable when displayed correctly. E=mc2. LibreOffice also comes configured with a PDF file creator, meaning you can distribute documents that you're sure can be opened and read by users of almost any computing device or operating system. LibreOffice also comes configured with a PDF file creator, meaning you can distribute documents that you're sure can be opened and read by users of almost any computing device or operating system. Download: LibreOffice 64-bit | LibreOffice 32-bit ~300.0 MB (Open Source) View: LibreOffice Website | Screenshot | Release Notes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I'm not sure why, but for some reason I think that if they are deciding to use the year for the version history they should use the whole year (i.e. iOS 2026).
    • Here's why it makes sense to name it iOS 26 and why it doesn't by Aditya Tiwari It has been almost 18 years since Apple launched the first version of its popular mobile operating system alongside the original iPhone. Recent reports and rumors circulating on the web suggest that the company is all set to unveil a major overhaul for iOS 19 at this year's WWDC keynote. There is something that baffled many when they found that the Cupertino giant is reportedly planning to rename iOS 19 to iOS 26. Yes, a company like Apple skipping eight versions for iOS is enough to leave users with a "why?" expression on their face. However, even if Apple pulls it off, there are two sides to the coin. Why it makes sense to call it iOS 26 There are several reasons why calling it iOS 26 instead of iOS 19 isn't as weird as it sounds. To begin with, it's something that has been done in the past. Samsung is a well-known example when we think about renaming device lineups and skipping version numbers. Samsung launched the Galaxy S20 series in 2020. But what was its predecessor? Galaxy S19? No, it was the Galaxy S10. The South Korean giant renamed its device lineup and aligned it with the year of launch, jumping ten versions in the process. So, someone viewing a Galaxy S23 can easily determine that the device was launched in 2023. It also gives them a feeling that they are using the 'latest and greatest' product. On the flip side, a device from the previous year may feel outdated, potentially motivating them to upgrade. Skipping version numbers isn't fun and games for everyone. Microsoft became the butt of jokes when it skipped Windows 9 and announced that Windows 8.1 will be upgraded to Windows 10 (that too in 2015). Windows 10 was thought to be "the last version of Windows", but things turned out differently. Apple's case would be a bit different, where the iOS version number is one year ahead. So, iOS 26 will release in 2025, iOS 27 in 2026, and so on. This approach is similar to how game companies like Electronic Arts name their gaming titles. Although it may seem off track, the naming scheme aligns with Apple's development schedule. The company typically announces new iOS versions at WWDC in June and rolls them out to the public in the fall season. After that, it continues to push incremental updates through the following year. In other words, a particular iOS version lives on your iPhone for a quarter of the launch year and about nine to ten months in the following year. Meanwhile, Samsung releases new Galaxy S devices at the start of the year, so it makes more sense to align their name with the current year. Not just iOS 26, reports said that Apple will streamline its confusing software naming system by renaming almost all of its operating systems to a single version. So, there will be iPadOS 26, macOS 26, tvOS 26, and watchOS 26 instead of iPadOS 19, macOS 16, tvOS 12, and so on. While the big move will make things easier for users, it will also highlight the work Apple has been doing to unify its software experience across devices. iOS and iPadOS have been related to each other from the beginning, but macOS gained ARM support in 2020 and began incorporating iOS-like UI elements. Apple has already developed a suite of Continuity features that enable different Apple devices to work together. macOS 14 Sonoma further bridged the gap between iPhone and Mac in 2023 with a revamped widgets picker UI, which allows access to and syncing with widgets stored on your iPhone. New widgets introduced in macOS 14 are interactive, similar to those on iPhone. They let you do stuff like checking off reminders, playing or pausing media, accessing smart home controls, and more. Apple's iOS 26/iOS 19 would be the second major naming shake-up in the history of iOS. The first one was when Apple renamed the operating system from iPhone OS to iOS in June 2010. iOS 26 is expected to be the biggest update in years, reportedly featuring a 'dramatic' glass-like UI overhaul, a revamped Camera app, live translation for AirPods, a new gaming app, and a new set of accessibility features. The glass-like design, first introduced on Apple's Vision Pro headset, is expected to make its way to tvOS and watchOS. Why doesn't it make sense to call it iOS 26 It already feels a bit awkward when you realize that the iPhone 16 runs iOS 18, for whatever reason, when the first iterations of both iPhone and iOS arrived in the same year. Adding eight more digits to the iOS version number will make it sound even weirder. The 19th generation of iPhone's operating system will be called iOS 26. Imagine buying an iPhone 17 later this year, and it runs iOS 26 out of the box. However, there are a couple of things Apple can do to tone down the awkwardness. Perhaps Apple can rename the iPhone series and start calling it iPhone 26 to match its software counterpart. A far-fetched and even more unlikely option is to drop version numbers from the iPhone's name entirely. Apple is already doing it for its tablets (iPad, iPad Pro, and iPad Air) and its Mac computers. Therefore, it won't be an issue once the users absorb the initial shock of the announcement. But we can't ignore that not having a version number tied to a product has its downsides. These are all speculations anyway. Whatever happens, Apple fans will get over it and learn to live with it, like they are living with the hopes of an upgraded Siri and AirPower to charge their Apple devices together.
    • I'd prefer the disclaimer being more transparent by putting it above the article.
    • dBpoweramp Music Converter 2025-06-05 by Razvan Serea Audio conversion perfected, effortlessly convert between formats. dBpoweramp contains a multitude of audio tools in one: CD Ripper, Music Converter, Batch Converter, ID Tag Editor and Windows audio shell enhancements. Preloaded with essential codecs (mp3, wave, FLAC, m4a, Apple Lossless, AIFF), additional codecs can be installed from [Codec Central], as well as Utility Codecs which perform actions on audio files. After 21 days the trial will end, reverting to dBpoweramp Free edition (learn the difference between Reference and dBpoweramp Free, here). dBpoweramp is compatible with Windows 10, 8, 7, Vista, both 32 and 64 bit. dBpoweramp Music Converter features: Convert audio files with elegant simplicity. mp3, mp4, m4a (iTunes / iPod), Windows Media Audio (WMA), Ogg Vorbis, AAC, Monkeys Audio, FLAC, Apple Lossless (ALAC) to name a few! Multi CPU Encoding Support Rip digitally record audio CDs (with CD Ripper) Batch Convert large numbers of files with 1 click Windows Integration popup info tips, audio properties, columns, edit ID-Tags DSP Effects such as Volume Normalize, or Graphic EQ [Power Pack Option] Command Line Encoding: invoke the encoder from the command line DSP Effects - process the audio with Volume Normalize, or Sample / Bit Rate Conversion, with over 30 effects dBpoweramp is a fully featured mp3 Converter dBpoweramp integrates into Windows Explorer, an mp3 converter that is as simple as right clicking on the source file >> Convert To. Popup info tips, Edit ID-Tags are all provided. dBpoweramp Music Converter 2025.06.05 changelog: Darkmode added Core Converter Debug log dumps ID Tags written VST Effect Folders dialog fixed missing InitCommonControls would not show correctly FLAC/Ogg/Opus/etc - allows editing of CDTOC ID Tag CD Ripper secure ripping log where shows TOC was not showing CD Extra correctly CD Ripper was incorrectly setting data track length on main display (for certain drives) CD Ripper internally better handling of corrupt TOCs CD TOC to Tag was incorrectly adding 150 to CD Extra disc CD Ripper shows "AccurateRip Unconfigured" in rip status rather than "not in accuraterip" if unconfigured CD Ripper art paste accepts https CueSheet added as standard - log file written to same folder as cue and folder.jpg AIFF internal code merge (macos >> windows) Download: dBpoweramp Music Converter R2025.06.05 | 82.2 MB (Shareware) View: dBpowerAMP Music Converter Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      abortretryfail earned a badge
      Week One Done
    • First Post
      Mr bot earned a badge
      First Post
    • First Post
      Bkl211 earned a badge
      First Post
    • One Year In
      Mido gaber earned a badge
      One Year In
    • One Year In
      Vladimir Migunov earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      496
    2. 2
      snowy owl
      254
    3. 3
      +FloatingFatMan
      252
    4. 4
      ATLien_0
      228
    5. 5
      +Edouard
      191
  • Tell a friend

    Love Neowin? Tell a friend!