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.

Similar Messages

  • How to repair Open Directory Master after Changing Hostname

    Summary:
    How to repair Open Directory after Changing your Server's Hostname (see separate post)
    Problem:
    I had to change our server's hostname from a private hostname (server.name.private) to a public hostname (name.dyndns.org).
    Procedure:
    1. Precautions:
    Since I was anticipating major dramas I tested the change of hostname on a clone ( I used Super Duper, and I very strongly advise everybody to heed this warning because a change of hostname will corrupt your server services, in particular Open Directory)
    Second, I exported the network users from Server Admin and copied the archive to the Drop Folder of the server's local account (because the network accounts will be unavailable after demoting the OD Master.)
    2. Change hostname and demote OD Master
    a) I re-booted the server from the clone
    b) I changed the hostname in Server App and I noticed that the Open Directory Password and the Kerberos database were still stuck with the old hostname.
    c)  I then demoted to a standalone directory (Server Admin) and I tried to promote the server to an OD Master using the Server App (Manage Network Accounts). Server App always returned an error saying I should check my network settings.
    3. List of 'fixes'
    I tried the following fixes to no avail (which does not mean that you can skip them)
    a) I checked the DNS entries, forward and reverse were working fine (sudo checkip -changehostname)
    b) Checked with Lookup in Network Utility, all was fine
    c) I deleted all system certificates (Keychain) which showed the name of the previous hostname
    ( N.B. you need not delete email certificate and private/public keys)
    d) I tried to assign a new static IP in Networking Preferences (had no visible result)
    e) I re-booted from the working drive and I re-paired permissions on the clone; I ran disk repairs.
    Despite all this I could not re-create an OD Master.
    I then looked for this dubious folder /var/root/Library/Application Support/Certificate Authority.
    I could not find this folder when using the Finder's Go To Folder, nor did "Easy Find" see this folder.
    I was about to give up when I read the posts on this page and I entered the Terminal commands
    sudo rm -R /var/root/Library/Application\ Support/Certificate\ Authority/
    I had not much hope when I set about to re-create the OD Master from the Server App.
    But lo and behold !!! I did not trust my eyes when Server App claimed that the OD Master had been successfully created. And indeed, Server admin showed a running OD Master, LDAP, Kerberos and Password Server all running again !
    Final touch: re-import the user accounts.
    Epilogue:
    I woud not have been able to fix this issue had not so many others shared their experience and the working solution.
    (Refer : https://discussions.apple.com/thread/3219325?start=0&tstart=0 )
    Thank you all !
    Let's hope that Apple will fix this annoying issue in the next server update.
    Regards,
    Twistan

    Hi Rhyan,
    Please try clearing the security cache
    http://www.sharepointanalysthq.com/2014/05/active-directory-groups-and-sharepoint-security/
    https://sergeluca.wordpress.com/2013/07/06/sharepoint-2013-use-ag-groups-yes-butdont-forget-the-security-token-caching-logontokencacheexpirationwindow-and-windowstokenlifetime/
    http://webactivedirectory.com/active-directory/windows-active-directory-cached-user-credentials/
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • 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 change the hostname was set/defined in SAP system?

    Dear Expert,
    My customer met a problem about that:
    he defined his host name with small characters(lower case) "abc" when he installed the SAP system (Windows2003(x64)-Solman70SR4).
    But in SM21, the title of sm21, the hostname was recognize as upper case "ABC".
    in SM51, the hostname was also recognized as upper case "ABC"
    in STMS, the tab of 'transport tool', it is recognized as lower case "abc" in TRANSDIR.
    in SM59, it is recognized as upper case "ABC" in internal connections, but recognized as lower case "abc" in ABAP connections, such as TMSADM@<DB>.DOMAIN.<sid>
    While in Java URL, it is recognized as lower case "abc". With my test, the Java URL is not case sensitive for the HOSTNAME part in HTTP link as I tested to change the hostname both in upper case and lower case in etc\hostname file, the URL both are working. (not sure if this is due to the test is with intranet or not).
    Based on SAP note 611361, it seems that:
    "Hostnames must be considered "case sensitive". That means
    hostnames shall be used in the same case (upper or lower) in all
    SAP configurations as well as in the network configuration (DNS
    or etc/hosts). You must ensure consistent name resolving of the
    hostname from hostname to IP address and back from the IP address
    to the the same hostname (case sensitive match). See also note
    129997."
    Please help to suggest.
    Many thanks in advance,
    Perry Song

    Section  4.13 "Checking the Consistency of the Host Name" in [This Upgrade Guide|https://websmp208.sap-ag.de/~sapidb/011000358700000353422008E]  has a good explaination of what & how to check your hostname / parameter configuration.
    on a windows box, another way to get the TCP/IP name is to type  'hostname' from a CMD window.

  • 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.

  • How to setup DNS behind Airport Extreme and ISP that will not reverse DNS

    Hi,
    I am having issues setting up my Mac Mini with SLS. Right now my server is connected to the internet through my Airport Express. It gets a static address from the router (10.0.1.13). The router also has a static address from my ISP. I own the domain redcedarpoint.com. I have set the A record to point to my static router IP address. I also setup a CNAME for server.redcedarpoint.com to the same address.
    During the initial portion of setup SLS sees my ISP's domain versus my own domain and incorrectly fills the local domain name. I manually changed these to redcedarpoint.com and called the server 'server'. This puts server.redcedarpoint.com into all the host names. Everything seems to work, but now all my users get email addresses like [email protected] versus [email protected]. I have manually set mail host name to redcedarpoint.com (although this is wrong I think). It solves the email addressing issue, but now postfix gives me a warning about a duplicate:
    +Jan 27 21:20:45 server postfix/postmap[70670]: warning: /var/amavis/local_domains.db: duplicate entry: "redcedarpoint.com"+
    My question is: What should I fill in during setup and how should I setup DNS from my hosting service.
    By the way, I am also trying to funnel all inbound and outbound email through my premium Google Apps subscription.
    Here's also the result of postconf -n
    +Last login: Wed Jan 27 21:19:47 on ttys000+
    +server:~ ianknight$ postconf -n+
    +biff = no+
    +command_directory = /usr/sbin+
    +config_directory = /etc/postfix+
    +content_filter = smtp-amavis:[127.0.0.1]:10024+
    +daemon_directory = /usr/libexec/postfix+
    +debugpeerlevel = 2+
    +enableserveroptions = yes+
    +header_checks = pcre:/etc/postfix/customheaderchecks+
    +html_directory = /usr/share/doc/postfix/html+
    +inet_interfaces = all+
    +mail_owner = _postfix+
    +mailboxsizelimit = 0+
    +mailbox_transport = dovecot+
    +mailq_path = /usr/bin/mailq+
    +manpage_directory = /usr/share/man+
    +mapsrbldomains =+
    +messagesizelimit = 10485760+
    +mydestination = $myhostname, localhost.$mydomain, localhost, dmcwatering.com, internationalcardio.com+
    +mydomain = redcedarpoint.com+
    +mydomain_fallback = localhost+
    +myhostname = redcedarpoint.com+
    +mynetworks = 127.0.0.0/8,216.239.32.0/19,64.233.160.0/19,66.249.80.0/20,72.14.192.0/18,209.8 5.128.0/17,66.102.0.0/20,74.125.0.0/16,64.18.0.0/20,207.126.144.0/20,173.194.0.0 /16+
    +newaliases_path = /usr/bin/newaliases+
    +queue_directory = /private/var/spool/postfix+
    +readme_directory = /usr/share/doc/postfix+
    +recipient_delimiter = ++
    +relayhost =+
    +sample_directory = /usr/share/doc/postfix/examples+
    +sendmail_path = /usr/sbin/sendmail+
    +setgid_group = _postdrop+
    +smtpsasl_authenable = yes+
    +smtpsasl_passwordmaps = hash:/etc/postfix/sasl/passwd+
    +smtpdclientrestrictions = permit_mynetworks permitsaslauthenticated rejectrblclient zen.spamhaus.org permit+
    +smtpdenforcetls = no+
    +smtpdhelorequired = yes+
    +smtpdhelorestrictions = rejectinvalid_helohostname rejectnon_fqdn_helohostname+
    +smtpdpw_server_securityoptions = cram-md5,gssapi,login+
    +smtpdrecipientrestrictions = permitsaslauthenticated permit_mynetworks rejectunauthdestination checkpolicyservice unix:private/policy permit+
    +smtpdsasl_authenable = yes+
    +smtpdtlsCAfile =+
    +smtpdtls_certfile =+
    +smtpdtls_excludeciphers = SSLv2, aNULL, ADH, eNULL+
    +smtpdtls_keyfile =+
    +smtpdtlsloglevel = 0+
    +smtpduse_pwserver = yes+
    +smtpdusetls = no+
    +unknownlocal_recipient_rejectcode = 550+
    +virtualaliasmaps =+
    +server:~ ianknight$+

    The first one is easy...
    Jan 27 21:20:45 server postfix/postmap70670: warning: /var/amavis/local_domains.db: duplicate entry: "redcedarpoint.com"
    You have redcedarpoint.com set as both the domain name and the hostname of the server. That is not correct:
    mydomain = redcedarpoint.com
    myhostname = redcedarpoint.com
    In this case, myhostname should be the reverse DNS hostname that the recipient mail server would see on outgoing mail - typically this would be something like 'mail.redcedarpoint.com
    You should also fix the mydestination parameter so that it includes your domain name as well:
    mydestination = $myhostname, localhost.$mydomain, localhost, dmcwatering.com, internationalcardio.com
    mydestination identifies the domains this server accepts mail for. In this setup it will accept mail addressed to @mail.redcedarpoint.com (assuming you fix myhostname, as above), @localhost.redcedarpoint.com, @localhost, @dmcwatering.com and @internationalcardio.com
    Nowhere here does @recedarpoint.com appear, so users won't get mail addressed to [email protected]
    It's easiest to just add redcedarpoint.com to the list of domains the server handles mail for.
    how should I setup DNS from my hosting service
    Your subject implies a reverse DNS question, but there's nothing in this post about reverse DNS. Other than that, you should have an MX record for your domain that points to the public IP address of your router.

  • How to add DNS server to CER after Server has been Built

    How to add DNS server to CER after Server has been Built?
    The reason why, the CER 1.3.1 that I upgrade to 7.1, had the switch list by hostname,
    The install of 1.3.1 had the LMHOST file editted with all the switch names.
    Is there such thing as a host file on 7.1 CER? If not, that is where I need to add the DNS server now. As they will have to add the switch hostnames to the DNS server.
    Thanks
    Kallol

    I found where to set the DNS via CLI...
    admin:set network dns
          set network dns options
          set network dns primary
          set network dns secondary
    Also it requires me to configure the domain name.
    set network domain name

  • 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 repair my macbook pro when i had delete the app store file and know it telling that appstore file has been damage or incomplete and i had the version 10.6.8

    how to repair my macbook pro when i had delete the app store file and know it telling that appstore file has been damage or incomplete and i had the version 10.6.8

    so is their is any way that i can solve this matter

  • How to repair corrupted xp files with the Toshiba recovery dvd pkg

    Hello all, my Satellite a105-s4054 has some corrupted xp os files.  Please advise on how to repair only these files using the recovery dvd pks included with my sytem.  I would rather not have to do a complete format and install.   And it is now obvious which of the individual files listed should be replaced to repair the corrupted files. 
    Is there  way to just replace the corrupted files?
    Thank you

    Satellite A105-S4054 
    ..replace the corrupted files?
    If they are system files, this will fix them.
       Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)
    -Jerry

  • I down loaded the latest update for itunes and now it says Ive lost MSVCR80.dll and don't know how to repair it

    When requested I tried to down load the latest update for itunes and now I cant open itunes as it says Ive lost the MSVCR80.dll file and I don't know how to repair it.
    I've tried re-installing as the error message instructed but that hasnt worked.
    Can anyone help?

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • I need quick time 7.5.5 for itunes.How to repair problem of installation?

    I have mac leopard 10.5.5 powerpc and I have itunes 10.6.3.
    Itunes need Quick Time 7.5.5 or more.
    I tried to install quick time but there is a problem of instalation.
    How to repair problem of installation of Quick Time?

    Some specific downloads of QuickTime:
    7.5.5 for Tiger
    7.6 for Tiger
    7.6.4 for Leopard
    7.7 for Leopard
    Since you have Mac OS X 10.5, Leopard, it would probably be better to use one of those Leopard-specific downloads.

  • HT1338 how to repair my webcam?

    how to repair my webcam?  my photobooth shows me that there is no wecam
    please help me because i have no possibility to make a video call.

    FaceTime
    http://support.apple.com/kb/TS4185
    http://www.apple.com/support/mac/facetime/getstarted/
    Make sure that time and date are set correctly.
    If the suggestions made in these articles do not help, contact Apple.
    Best.

  • How to repair database using SQL server 2008 and C#

    How to repair database in SQL server 2008 using C#
    Musakkhir Sayyed.

    Unfortunately your post is off topic as it's not specific to SQL Server Samples and Community Projects.  
    This is a standard response I’ve written in advance to help the many people who post their question in this forum in error, but please don’t ignore it.  The links I provide below will help you determine the right forum to ask your
    question in.
    For technical issues with Microsoft products that you would run into as an end user, please visit the Microsoft Answers forum ( http://answers.microsoft.com ) which has sections for Windows, Hotmail,
    Office, IE, and other products.
    For Technical issues with Microsoft products that you might have as an IT professional (like technical installation issues, or other IT issues), please head to the TechNet Discussion forums at http://social.technet.microsoft.com/forums/en-us, and
    search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), please head to the MSDN discussion forums at http://social.msdn.microsoft.com/forums/en-us, and
    search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here: http://community.dynamics.com/
    If you think your issue is related to SQL Server Samples and Community Projects and I've flagged it as Off-topic, I apologise.  Please repost your question and include as much detail as possible about your problem so that someone can assist you further. 
    If you really have no idea where to post your question please visit the Where is the forum for…? forum http://social.msdn.microsoft.com/forums/en-us/whatforum/
    When you see answers and helpful posts, please click Vote As Helpful,
    Propose As Answer, and/or Mark As Answer
    Jeff Wharton
    MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt), MCT, MCPD, MCSD, MCSA, MCITP, MCDBA
    Blog: Mr. Wharty's Ramblings
    Twitter: @Mr_Wharty
    MC ID:
    Microsoft Transcript

  • How to Repair IP address on printer

    I had to replace the router on my home network and now my C6180 all-in-one printer does not recognize/connect to the router.  I have a Vista operating system on the PCs, a Cisco Valet M10 router and an HP C6180.  The PCs are connected wirelessly to the network and work fine.  The Printer is connected via ethernet cable to the house cable box and the house cable box is then connected via cable to the router.  I've gone through numerous help desk and think I've identified the problem as needing to manually change the IP address on the printer itself.  I have tried to enter that manually but 1) the IP address ends in one or two digits but I can't find how to delete the other digits on the HP and 2) when I hit ok, the manual entry disappears and is not recognized.  Can anyone tell me how to repair the IP address on the printer?
    This question was solved.
    View Solution.

    Hi,
    If the last number of the IP address you are trying to assign is for example 12, try entering 012.  So basically, if it wants three digits in each of the four fields, just enter nought(s) to make up the number.  This may also be the reason it refuses to accept the address when you click Ok.
    Let me know how it goes.
    Best wishes,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

Maybe you are looking for