DNS hostname resolution

Hi,
I've installed OSX server 10.3.4 with Open Directory.
From terminal, when I type hostname, it returns with the correct hostname.
When I type host and given hostname from previous line, it returns with a "host not found" and 3(NXDOMAIN) error.
Please help
Thx
eMAC   Mac OS X (10.3.4)  

To amplify a little bit on Camelot's suggestions:
1. In Server Admin, go to the DNS Service and click the Settings tab. Under General, Zone transfers and Recursion are both enabled by default. That's OK if your server is safely tucked away inside a private network. Under the Zones tab, enter a Zone name (smokin.private, for example) and a server name (emac, for example). Server Admin will show you a fully qualified domain name (emac.smokin.private). Enter your static local address (192.168.1.8) if necessary. Save.
2. In the server's System Preferences, enter the server's own local address (192.168.1.8) in the DNS Server field of the Network pane. You'll need to do this on each of your clients, too, for them to know to use the server for DNS. (Alternatively, if you have a router configured for DHCP, you can enter this information there and the clients will pick up the server's IP address with their DHCP leases. Just be sure the server itself isn't configured to use DHCP.)
3. Test your lookups.
4. You may want to set up a forwarder in this configuration. You may find this thread helpful.
Xserve G5   Mac OS X (10.4.5)  

Similar Messages

  • Hostname resolution question. Could it be DNS?

    I've recently installed 10.5 Server on my Mac. I named the machine Silkworth, but when I run changeip -checkhostname I get the below. I do I get back to the hostname w/o ".local"?
    Silkworth:etc waynehapp$ sudo changeip -checkhostname
    Primary address = 192.168.1.100
    Current HostName = Silkworth.local
    The DNS hostname is not available, please repair DNS and re-run this tool.

    If you go to terminal and type in *host servername* does it resolve your ip? If you type *host yourip* does it resolve your server name? This is how you check to see if DNS is working properly. If it does, then DNS is working. If it doesn't you have a problem. Make sure under setting in the DNS service that you have added your ip range into the recursive section. For example you might enter 192.168.0.0/24. Also make sure you still have an ns record for your primary zone. And that your primary zone name is fully qualified. For instance if your zone was called lunch-lady.land.com your fully qualified domain name would be lunch-lady.land.com. The period at the end is very important in this location. Hope this helps.
    David

  • New User: Current HostName, DNS HostName Don't Match?

    I have Leopard Server setup on a Mac Mini as a test platform before we migrate from our old windows server. I have read Antonio Rocco's excellent DNS setup tutorial (http://discussions.apple.com/thread.jspa?threadID=1251475) and Wazza's Quickstart Guide. However, when I run 'sudo changeip -checkhostname' my current hostname and dns hostname come up slightly different eg
    Current HostName: miniserv.xxxxxx.net
    DNS HostName: MiniServ.miniserv.xxxxxx.net
    In Server Assistant, I setup my Primary DNS Name as 'miniserv.xxxxxx.net' and my Computer name name as 'MiniServ'. As you can see, my DNS HostName has both my computer name and dns name listed together.
    1) Is this normal? I assume not as all the examples I have seen show the DNS hostname and current hostname listed exactly the same.
    2) Can you point me in the right direction on how to go about fixing this.
    Thanks alot!

    I have a tendency to set the machine name for server as the same FQDN as setup in DNS. Set them both the same, reboot and see if things work better.
    Please remember: the #1 thing to do to make Mac OS X Server work properly is DNS. Without properly working forward and reverse DNS records all bets are off.

  • Error #2048 (Sandbox Violation) in AIR prevents future hostname resolution

    Scenario:
    Create an application which tries opening 100 socket connections. This in turn triggers an Error #2031(Socket Error) on a few of them, I believe this is a limitation in Flash? or something similar? After a few seconds, those same socket connections will trigger an Error #2048 (Security Sandbox Violation).
    If the hostname which you used to connect to the sockets is a name (ex: "localhost") it will prevent any new connections from opening at all and will trigger an Error #2048 on all those future connections even though they are completely unrelated to the first.
    If the hostname which you use is an IP Address ("127.0.0.1") those individual connections will have failed but no future interaction will be affected.
    Problem:
    1) Why is an AIR application triggering a security sandbox error at all?
    2) Why is this error locking up hostname resolution?
    3) Is this in fact a hostname resolution problem since there are no issues when using an IP address?
    3a) In my testing it appears that once the Error #2048 "locks" resolution, it can be "unlocked" by using an IP Address on any socket (any successful socket connection really) which will restore the name resolution capability. Or so it seems.
    Any help would be greatly appreciated. Until I nailed down the specific cases where this was happening the errors appeared very byzantine.
    It is not only the Error #2031 from too many connections that triggers the Error #2048. The main problem is that Error #2048 is triggered by unspecified socket errors (unexpected close for example) and hence locks up future connections.
    The reason this is such a problem is that I'm creating an application specifically for the purpose of monitoring a custom server so errors do happen, and if future requests cannot complete a connection due to name lookup failure it can cause a huge problem for monitoring validity.

    Any help with this would be greatly appreciated.

  • How does changeip determine the dns hostname?

    Hello,
    i've been trying to setup my 'test' server at home according to the info i find online.
    one of the first parts is setting the hostname. It is recomended that you use something like
    server.myowndomain.com
    when i use sudo changeip -checkhostname i get
    Primary address     = 192.168.xx.xx
    Current HostName    = server.myowndomain.com
    DNS HostName        = myowndomain.com
    To fix the hostname please run changeip for your system with the
    appropriate directory with the following values
       /Applications/Server.app/Contents/ServerRoot/usr/sbin/changeip 192.168.xx.xx 192.168.xx.xx server.myowndomain.com myowndomain.com
    dirserv:success = "success"
    at my external dns control panel there are 2 A records for my domain name
    localhost
    A
    127.0.0.1
    server
    A
    78.xxx.xxx.xxx
    when i ping from a remote location i get results for both myowndomain.com and server.myowndomain.com
    i had my server working when i used myowndomain.com as hostname, but everywhere i read it says you should use something like server.myowndomain.com as a hostname.
    Is there an other tool i can use to check what dns hostname i'm having?
    can someone shed some light on this for me please?
    thanks
    Marco

    If you are setting up your server on your LAN, then you need to support what is called split horizon DNS.  This means that you need to run a public DNS (which you have based on the ("at my external dns control panel there are 2 A records for my domain name") and you must run DNS on your LAN as well.  The reason for this is simple.
    When running your server on a LAN behind a firewall, your server has two identities.  The first identity is its LAN address.  As above, this is something on the 192.168.x.x network.  This is a private address range and can not be used for public routing.  The second identity is that of the public Internet.  As above, this is represented by the 78.x.x.x address that is the public address used by your firewall.
    When users on the LAN reference your server, they will need to reference it by the 192.168.x.x address.  When users externally want to access it, they will need to route to the 78.x.x.x network.  Thus, the need for two DNS entries.
    Now, the DNS entries are commonly the same.  The difference is the number assigned to the record.  For example, server.myowndomain.com will point to 192.168.x.x on your LAN and server.myowndomain.com with point to 78.x.x.x on the WAN.
    Other ways to check DNS would be to use nslookup or dig.  Also, check the server's network preference panel and look at your DNS entries.  The first entry should be a 192.168.x.x address and it should be pointing to a DNS server on your LAN.  This could be you server or it could be another device that is already running DNS.
    DNS is considered the foundation service for OS X Server.  However, it all depends on the services that you are running.  For Open Directory, Profile Manager, and others, DNS is critical.  Failure to implement it properly will give you nothing but headaches and likely cause future service deployment issues.  However, if you are just hosting a bunch of web sites, then DNS is not as critical, especially if the server is deployed on a LAN with no clients.
    As a note, if you were running your server with a public address, you could use BIND views.  However, this is not advisable for security reasons.
    R-
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

  • How to repair DNS hostname?

    Hello,
    I had a working DNS setup with the right Primary address, Current HostName and DNS hostname. While figuring out how to use the Print service my DNS hostname changed. I suspect that when I was adding a printer IP to the DNS list something went wrong. After that the DNS hostname must have changed to the name of the mail server. I discovered that, because I could not access the internet anymore and did a 'changeip -checkhostname' to check the settings. I thought that it was simple to delete the mail-server from the dns list to get the right DNS hostname back. But that's not the case.
    After putting in the mail server address the mail did not function either. So my DNS is mess now.
    I tried searching in the support discussions for a way to repair this, but could not find an answer that fits the situation.
    I am in the middle of a swith over and because everything was working (except the printers) I decided to move all data and mail from the old Windows servers to the new Mac servers. Because the system is in use now for a week I can't simply switch back. So I am stuck in this situation and desperate. Yes, I made a classical mistake not to backup first the working servers. But that happens when you are in a rush to get this done. This is my first Apple server experience and was very happy I came this far with the available Apple docs and discussion support.
    Server network situation:
    - Mac Mini server1 (en0:10.0.0.1, en2:191.168.0.128 (USB-adaptor)) configured as DHCP, NAT, FireWall and secondary DNS
    - Mac Mini server2 (10.0.0.2) configured as Primary DNS, Mail, Open Directory, AFP and SMB
    I configured with non-authorative domainname (say mydomain.nl). In the near future I will have a fixed IP-address so the domainname can be used from the internet.
    changip -checkhostname on result:
    Primary address = 10.0.0.2
    Current Hostname = hollandia.mydomain.nl
    The DNS hostname is not available, ...
    scutil --get LocalHostName = DeHollandia
    scutil --get Hostname = hollandia.mydomain.nl
    dig -x 10.0.0.2
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id:3354
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
    ;; QUESTION SECTION:
    ;2.0.0.10.in-addr.arpa. IN PTR
    ;; SERVER: 10.0.0.2#53(10.0.0.2)
    DNS configuration:
    -mydomain.nl
    hollandia Machine 10.0.0.2
    beschermer Machine 10.0.0.1
    mail Machine 10.0.0.2
    -0.0.10.in-addr.arpa.
    10.0.0.1 Reverse Mapping beschermer.mydomain.nl
    10.0.0.2 Reverse Mapping hollandia.mydomain.nl
    Hopes the above info is a start to the solution.

    Solved.
    After some study of DNS examples I manually edited the file /var/named/zones/db.0.0.10.in-addr.arpa.zone.apple.

  • Current HostName different to DNS HostName

    hi,
    I am/have changed my machine name but the DNS HostName is still showing as the old name when I do a "changeip -checkhostname".
    I believe this is automatically set by doing a reverse DNS lookup. What I want to know is how do I correct that so it updates to the new name?
    Thanks,
    Regan

    look at the manual page for changeip
    man changeip
    changeip /LDAPv3/127.0.0.1 192.0.0.12 192.0.1.10 oldhost newhost
    This would prepare for changing the address of a
    machine hosting an LDAP master. Note that it might
    still be necessary to change the configuration of
    machines pointing to this master.
    changeip - 192.0.0.12 192.0.1.10 oldhost newhost
    This would prepare for changing the address of a
    standalone server.
    changeip /NetInfo/root/netinfonode 192.0.0.12 192.0.1.10 oldhost newhost
    This would prepare for changing the address of a
    server bound to a parent NetInfo node.
    changeip /NetInfo/root/netinfonode 192.0.0.12 192.0.1.10
    Same as above, but where the old and new IP
    addresses map to the same name.

  • How to setup multi DNS server resolution

    I have a peculiar situation which I think may be applicable to others. I take my Macbook Pro to work. At work I have a Ethernet based LAN connection and a wireless connection.
    The ethernet connection gets me access to company servers, but uses some crude proxies and limits what I can access on the net.
    The wireless was setup by a tech to get around this and has a direct connection to the net, but no access to the company servers.
    The best situation I have currently is to put the wireless connection first in the network setting sand use that unless I need a company server. Then I have to turn wireless off before accessing the server and turn it back on to access anything I cannot get through the company LAN.
    I've been looking into configuring the Mac to enable me to have both on all the time. I've found that if I execute
    route add 161.117.0.0/16 -inteface en0
    Then any company server name I have already resolved will correctly route out through the eithernet rather than the wireless which solves the first part of the puzzle.
    I've also tried to setup multiple DNS resolution by adding a /etc/resolvers/company.com.au file with the contents:
    nameserver 161.117.219.153
    nameserver 161.117.248.113
    search company.com.au
    search_order 1
    I've then checked this with scutil --dns which shows
    DNS configuration
    resolver #1
      search domain[0] : Wireless
      nameserver[0] : 10.0.0.138
    resolver #9
      domain   : company.com.au
      search domain[0] : company.com.au
      nameserver[0] : 161.117.219.153
      nameserver[1] : 161.117.248.113
      order    : 1
    DNS configuration (for scoped queries)
    resolver #1
      search domain[0] : Wireless
      nameserver[0] : 10.0.0.138
      if_index : 5 (en1)
      flags    : Scoped
    resolver #2
      search domain[0] : company.com.au
      nameserver[0] : 161.117.219.153
      nameserver[1] : 161.117.248.113
      if_index : 4 (en0)
      flags    : Scoped
    But I still cannot get DNS resolution working for the company servers. Dig is no help because it's doco says that it only uses the /etc/resolv.conf file. Unfortunately documentation on setting up multi DNS resolution is practically nil and I've not been able to find any examples on the net. Just a few postings saying to use /etc/resolvers and very little doco in man pages.
    Has anyone else managed to get this working?

    Following blogposts will get you started:
    Automatic Provisioning of a Virtual BizTalk Environment
    http://blog.codit.eu/post/2013/06/07/Windows-Azure-IaaS-%E2%80%93-Automatic-provisioning-of-a-virtual-BizTalk-environment.aspx
    One Click BizTalk Multi Server Environment Azure Provisioning
    http://blog.brauwers.nl/2013/07/23/one-click-biztalk-multi-server-environment-azure-provisioning-and-full-configuration/
    Build an Azure IAAS Biztalk Single Server or Domain
    http://www.biztalkgurus.com/biztalk_server/biztalk_blogs/b/biztalk/archive/2014/06/12/build-an-azure-iaas-biztalk-single-server-or-domain-win-100-or-other-great-prizes.aspx
    Glenn Colpaert - MCTS BizTalk Server - Blog : http://blog.codit.eu

  • Slow DNS web resolution

    I've noticed the DNS resolution for web services on our network has become a little slow.
    The log is showing the below (for example):
    success resolving 'www.jamesallenonf1.com/A' (in 'jamesallenonf1.com'?) after reducing the advertised EDNS UDP packet size to 512 octets
    Any ideas what this could be caused by and if it would explain the slowing of web page resolution?
    Thanks

    Thanks - that was useful as was the below quote:
    Quote by: MacTroll
    Your DNS server is attempting to use DNS-SEC, for validated DNS lookups. This requires a larger UDP packet size, >512 bytes, than your firewall seems to like. It then has to wait to both decide it needs to reduce packet size /and/ to get a negative result on the lookup.
    I would imagine that the DNS resolver on OS X client doesn't bother to do a DNS-SEC lookup, and hence no issue.
    This was evident in another line of the log:
    host unreachable resolving 'I.ROOT-SERVERS.NET/AAAA/IN': 198.41.0.0#53
    I created a rule in the hardware firewall to forward port 53 to the SLS and its running fine now with no errors.

  • DNS Hostname & Computer Name

    I work in a university/medical environment, with large amount machine on the network. I'm running into an issue with DNS names and Computer name being different.
    Example: Computer Name: div-001
    DNS Name: mm-Ughe
    DNS name appears when i do a nslookup of the Ip that is assigned to machine by DHCP.
    Our end goal is to be able to use VNC client to remote support the Mac computer via hostname across the university, which will entail different subnets.
    Hope this make sense, and appreciate any help.

    The question is, when you do the nslookup (or dig, as nslookup has been deprecated), what is the authoritative server? It's as simple a matter as putting the name you want in the hosts file of the authority. Except if you use DHCP. Then you need to look into services like yp (yellow pages) or NIS. If you don't want to go that path, don't use DHCP, assign static IP addresses.

  • Two problem with the DNS (hostname order and slow internal DNS)

    Hi,
    First I'm sorry for my english,... So I've two questions which I cannot solve by myself.
    1/ I configured two DNS as primary on my Xserve one .com and one .ch. For the same name : example.com and example.ch. I defined a mail server, my second Xserve.
    If only my example.ch is configured on my DNS server my hostname is mail.example.ch, working fine with my specific MySQL software. But if I add the example.com to my DNS Server, my hostname is changed to mail.example.com !
    And that I do not want ! I need to keep my mail.example.ch. How can I fix my hostname to the .ch ?
    2/We have an Xserve with two Ethernet cards (for the NAT) and we have a DNS server on this computer. When I use the Xserve for DNS Server on the remote computer network preferences the internet is working but very slow to resolve the DNS. I think the problem is from the catching DNS system, but how I can disable that or speed up my internet connection ?
    Regards,
    Florent

    Thanks but my DNS is working fine now. My last
    problem is my hostname.
    Have a look in /etc/hostconfig. HOSTNAME defaults to -AUTOMATIC- which resolves by firstly trying reverse lookup on its IP - the first return from this will be adopted. If you have 2 PTR records for the IP then it may be resolving to the 'wrong' one. If this is the case then you could either...
    1. Remove one of the PTR records, or
    2. Edit /etc/hostconfig, replacing with HOSTNAME=mail.example.ch
    -david

  • Updating DNS hostname

    I'm sure I should know how to do this but I need to know how to update the our server's hostname in DNS. We're using Mac OS X Server 10.4.7 and it's just not clear to us.
    We're trying to change our IP address on the server as we just moved and have a new IP address.
    ANY help would be greatly appreciated.
    Thanks

    Do in Terminal : host -v -t NS <yourdomain>
    These are the nameservers hosting your domain.
    If one of these is the IP your server had before the move you have to alter that setting at a/the registrar for your (top-)domain to reflect the IP # change.
    Otherwise the record for your server IP has to be changed on the servers hosting your domain.
    You are hosting some of your own public services?

  • DNS name resolution ignores search domains ??

    I have a DNS search domain specified in network prefs for ethernet (and a domain picked up from DHCP).  But these appears to be ignored both in apps  and on the command line.  I find I have to type the fqdn which is a pain.
    Looking at /etc/resolv.conf I see  'domain' but no search entries.  UNIX docs suggest that domain should allow 'short names' maunally adding explicit search records to /etc/resolve.conf seems to work despite the warning that nothing uses resolve.conf any more. (as on most modern UNIX systems).
    Anyone know what is going on?  It is a worry that search domains specified in preferences => networks appear to be ignored.  It is also a worry that adding config to a supposedly unused file fixes the problem (well at least until it gets overwritten with the next dhcp refresh).
    Russell.

    Hi,
    How about the status of the problem now?
    DNS request timed out is mainly caused by losing of Network Connectivity, detailed information you may reference the link below(session
    7. Loss of Network Connectivity):
    https://technet.microsoft.com/en-us/library/bb962024.aspx
    If the problem still exits, try command line nslookup /set d2
    to turn exhaustive Debugging Mode on(all fields of every packet are printed). And post the result here.
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • FILTCFG based on DNS Hostname

    Is it possible to use filtcfg to filter out ip traffic using a source dns
    host name instead of a source ip address ?
    Hmm.. Thinking about it.. the answers probably no - seeing as a dns lookup
    would have to be done for every packet.. but its worth a shot in the dark
    Cheers

    Dom,
    > Hmm.. Thinking about it.. the answers probably no - seeing as a dns lookup
    > would have to be done for every packet.. but its worth a shot in the dark
    >
    Yes, you are right. The overhead would be prohibitive. What are you trying
    to accomplish?
    - Anders Gustafsson (Sysop)
    The Aaland Islands (N60 E20)
    Discover the new Novell forums at http://forums.novell.com
    Novell does not monitor these forums officially.
    Enhancement requests for all Novell products may be made at
    http://support.novell.com/enhancement

  • ARD 3.7.2 ersetzt dynamische DNS Hostnames durch nicht mehr aktuellen DNS Eintrag

    Hallo alle ARD (Apple Remote Desktop, nicht der gleichnamige Fernsehsender ) Nutzer,
    ich bin eigentlich ein alter Hase und benutze ARD schon seit Version 1, aber seit einigen Wochen macht ARD v. 3.7.2 Mucken.
    Sobald ich in Apple Remote Desktop z.B. den Hostnamen  xxx.dd-dns.de eintrage wird dieser sofort in einen (nicht mehr aktuellen) DNS Namen geändert, der bei Telekom Kunden auf t-ipconnect.de endet, weshalb die Verbindung zu dem Host xxx.dd-dns.de nicht mehr funktioniert. Wenn ich in Apple Remote Desktop statt des Hostnamens aber die aktuelle IP Adresse des Clients (die ich etwas umständlich von der entfernten FritzBox auslesen kann) eintrage, kann ich eine Verbindung zum Client herstellen.
    Es sieht so aus, als ob irgendein DNS Server nach einem anfänglich korrekten Lookup von  xxx.dd-dns.de einen Reverse Lookup macht, der dann bei xxx.t-ipconnect.de anstatt bei xxx.dd-dns.de endet:
    xxx.dd-dns.de -> 84.173.157.156 ->  xxx.t-ipconnect.de (dieser Eintrag ist aber am nächsten Tag veraltet !)
    Ich bin kein DNS Experte und würde mich über jede Anregung freuen.
    Gruß,

    Ich habe das Problem auch. Ich trage die Domain meines Hausanschlusses von DynDNS ein, Remote Desktop ermittelt die aktuelle IP-Adresse und trägt diese ebenfalls ein. Leider wird sie dann von Remote Desktop nicht mehr aktualisiert. Jeden Tag muss ich erneut den Info-Dialog des entfernten Rechners öffnen, die IP-Adresse löschen, Dialog schließen. So ermittelt Remote Desktop eine neue IP-Adresse und trägt sie ein.
    Kann man das irgendwie besser lösen?

Maybe you are looking for

  • Macbook Pro - Can't Repair Disk, but I Want to Take Files Off It?

    Hi everyone So I have my Macbook Pro here. It won't turn on. I have had it in a drawer for a couple of months now, as I got a new computer and just now realized I had a bunch of pictures on there that I wanted to move over to my new laptop. Whenver I

  • How to set persistent binding for QLA2300 (Sun branded -uses qlc driver)

    How to set persistent binding for QLA2300 (Sun branded ) HBA using qlc driver from Sun? Are there any CLI's for it? Is it done automatically? Is there any way by which we can infer that persistent binding is done? Platform: Solaris 9 on SPARC

  • Adobe uploads and works for a day or 2 and then won't open anymore

    I have Pro XI.  I have installed and uninstalled the program numerous times.  A few months ago, the program opened as usual and then when I tried to open it again later in the day, it showed the open menu but then never actually makes the connection.

  • Youtube window minimizes when opening new tab

    Hi, So.. I have a problem I'm using Macbook Pro Retina 15 (early 2013) with Yosemite and Safari. When I'm watching Youtube videos, and YT is the only tab open i can maximize the window so it's really big (not full screen), but when I open new tab, an

  • Physical inventory check MI01

    In MI01, eventhough if i select Posting Block, and freeze Book inverntory, after creating the Physical inventory Document. i tried posting some 100 qty for the same material and storage loc . I have also made (Allow Freezing of Book Inventory Balance