Need to set hostname and domain name

Hi All,
I need to
1) set my "hostname" (foo), and
2) set my "domain name" (acme.local)
such that my machine identifies itself as "foo.acme.local". Anyone know how to do this? (I found the host name in file sharing, but it will not let me set the domain name.)
Many thanks,
-T

etresoft wrote:
Your domain is the name of your server.
What gave you that idea? My domain name is "acme.local". It is not the name of my server. I have three servers on my network. The one with the DNS, DHCP, and firewall servers on it called "server.acme.local".
I am confused about why you feel the need to have a subdomain.
This is not a subdomain. What gave you the impression I was asking for a subdomain?
What you seek to accomplish is entirely unnecessary and far more involved than just editing a config file.
Pretty easy in Linux and Windows. They just grab the domain name from the DHCP server. Or, you can hand configure them if you wish. Do you know how accomplish same in 10.6.4?
Give your machine a name in System Preferences > Sharing and it will have the name "whatever.local". That is all you need.
I would like to the entire network name displayed correctly. "whatever.local" is incorrect. It should be "machinename.domainname" or "foo.acme.local". In my example, "foo" is the machine name ("whatever" in your example) and "acme.local" is the domain name. (Not the server's name, by the way.)
"System Preferences > Sharing" will not let me add any extra periods. And will not let me change the ".local" either. (In this instance, I want the ".local".)
Here is the reverse rule I had to hand create:
182 PTR foo.acme.local.
(The dot on the end is not a mistake.)
I do not want a stray computer floating around that does not identify itself correctly. "foo.acme.local" is correct. "foo.local" is not.
By the way, this computer gets its IP address from a DHCP server, which does tell this Apple what the domain name is. (It gets ignored.)
/etc/dhcpd.conf
option domain-name "acme.local";
That is the config file for your DHCP server. You would use this if your machine were sharing its internet connection, for example. You don't need to edit this file.
You misunderstand. The DHCP server, not on this Mac, is not being used to share Internet connections. It is being used to assign IP addresses to machines on the local network. It is also being used to assign fixed IP's to network printers based on their MAC addresses. In my network, these are "off Internet" addresses. The firewall, also not on this Mac, it used to share a single Internet connection with all the internal users.
Hmmm. I created the file (dhcpd.conf) by hand. And, yes I do need to edit it all the time. Especially when I have bone headed machines on my network that do not follow or respond to standard networking conventions. This Mac does not accept the domain name given to it by my DHCP server and as such my DHCP server will not automatically update my DNS tables.
Evidence of this can be found in the dhcpd.leases, where I had to hand enter
client-hostname "foo";
into the lease table (did not do me any good).
I am wondering if 10.6.4 is not capable of handling this kind of standard network naming convention. (FreeBSD, which Apple run on top, is capable, so I am confused.)
MacOS X does not run on top of FreeBSD. They are different operating systems. MacOS X has a POSIX layer which most closely resembles BSD, that is all.
Interesting. Thank you for pointing out the difference. I bet POSIX know how, just like FreeBSD, which it resembles.
If I change the name in /etc/hosts, will Apple over ride it? (I am not at the machine or I would just try it.)
You do not "change" the name in /etc/hosts. You are just adding entries into your machine's lookup table. You can add as many aliases to as many IP addresses as you want. This is not the same as changing your machine's name, but it may be sufficient for what you are trying to accomplish - assuming I knew that, which I don't.
Then, where do I make the change?
10.6.4 did not tell the DHCP server what its name was either, so I had to hand add it into my DNS forward and reverse records. AAAAHHHHH!!!!
I strongly advise against editing files you don't understand.
I create my entire DNS configuration by hand, including my forward and reverse tables. Oh yes, I understand it, do I ever understand it. You should not jump to conclusions: it is insulting. I am presuming you meant no insult. Just be more careful next time.
I think that what is happening here is that 10.6.4 is not set up to follow standard network naming conventions. I would posit that the idea is to keep home users out of trouble. Probably a good thing. If 10.6.4 is not capable of using standard naming conventions, (or following standard DHCP conventions), I would just like a confirmation of that so I will stop trying to figure out how to do it. And, stop wasting my time and just hand configure any additional Mac's that enter my network.
Again, a "confirmation that it can not be done", or "how to do it" is what I am looking for.
Thank you for the assistance,
-T

Similar Messages

  • How to change IP, Hostname and domain name for Oracle Application R12

    Hi,
    I'm new to Oracle, we used to have one production and one test server for Oracle Application R12, but the test server was corrupted, so we decided to clone production server and create a new test server, after cloning and creation of test server, how should we do to change IP address, hostname and domain name for test server?
    Our production and test server environment is:
    Linux Enterprise AS 2.6.9
    Application module: E-Business Suite Treasury only
    Your advice will be much appreciated.
    Regards,
    Kenneth
    Edited by: 850209 on Apr 7, 2011 5:37 PM

    850209 wrote:
    Hi,
    There are few tnsnames.ora and listener.ora files in the system, how to know which one are effective? If I change tnsnames.ora hostname entry, do I need to change listerner.ora file also?
    Thanks.
    Regard,
    Kenneth.tnsnames.ora is used only by client processes. listner.ora is used only to configure the listener, and that is a server side issue only. In addition, the listener can start without any listener.ora at all, using all default values. See my discussion of tns issues at edstevensdba.wordpress.com
    If you are using dbcontrol, you will most likely need to reconfigure it, using the emca utility.

  • OS X Server clients can't login after IP renumber and domain Name change

    I can not seem to get the logins working again on my OS X server (10.9.4 w/ server 3.1.2 on a 1 yr old. MacMini) after I needed to renumber the IP and change the domain name. I destroyed the Open Directory server, recreated it and created one test account. If I log in to the client with a local account I can connect to the server (Go>Connect To Server)  from the client using my newly created account, but when I try to login to the server  using the same network account login I get the "shaking head" response immediately. I have rebound the server to this client and it says that network accounts are available, but seem to be at a loss to understand why it won't let me login...
    The only error message I see in any of the logs is the following:
    (AFP Error Log:) Sep 15 20:21:47 isis.mydomain.com AppleFileServer[3032] <Info>: major error <1>: No credentials were supplied, or the credentials were unavailable or inaccessible.
    I'm not sure what credentials it is referring to. I created a self signed certificate that I am using with OD, could that be the one?

    Many Open Directory problems can be resolved by taking the following steps. Test after each one, and back up all data before making any changes.
    1. The OD master must have a static IP address on the local network, not a dynamic address.
    2. You must have a working DNS service, and the server's hostname must match its fully-qualified domain name. To confirm, select the server by name in the sidebar of the Server application window, then select the Overview tab. Click the Edit button on the Host Name line. On the Accessing your Server sheet, Domain Name should be selected. Change the Host Name, if necessary. The server must have at least a three-level name (e.g. "server.yourdomain.com"), and the name must not be in the ".local" top-level domain, which is reserved for Bonjour.
    3. The primary DNS server used by the server must be 127.0.0.1 (that is, itself) unless you're using another server for internal DNS. The only DNS server set on the clients should be the internal one, which they should get from DHCP if applicable.
    4. Follow these instructions to rebuild the Kerberos configuration on the master.
    5. If you use authenticated binding, check the validity of the master's certificate. The common name must match the hostname and domain name. Deselecting and then reselecting the certificate in Server.app has been reported to have an effect in some cases. Otherwise delete all certificates and create new ones.
    6. Unbind and then rebind the clients in the Users & Groups preference pane. Use the fully-qualified domain name of the master.
    7. Reboot the master and the clients.
    8. Don't log in to the server with a network user's account.
    9. Disable any internal firewalls in use, including third-party "security" software.
    10. If you've created any replica servers, delete them.
    11. As a last resort, export all OD users. In the Open Directory pane of Server, delete the OD server. Then recreate it and import the users. Ensure that the UID's are in the 1001+ range.

  • Reconfigure discover, webcache after change hostname and domain or clone

    Is there any fast/easy way to reconfigure discover, webcache? (like autoconfig for db and appl)
    ons.log shows it is still trying to connect to old server and connection refused.
    WebCache~WebCache log shows: [error 13079] [ecid: -] No matching CACHE element found in webcache.xml for current hostname (****.****.com) and ORACLE_HOME (/u02/disco/product/disco_1012)
    Thanks.

    Hi,
    Because the person who prepared the decommission tape did not run scripts to prepare the application for cloning. I cannot use clone method to configure it. Why do not run the scripts, copy the files and complete the steps? I believe this should save your time.
    Now ./opmnctl startall complete successfully and I can bring up the web page. But some links still point to other host name and domain.
    Still studying ...I would suggest you search all XML files under Discoverer $ORACLE_HOME and make sure none points to the old hostname and domain name.
    Regards,
    Hussein

  • How to change the full host and domain name on OS X Leopard...

    I recently bought an iMac, and I'm trying to configure it for my network. The question I have is, how can I change the host name and domain name from Skuld.local to skuld.tolharadys.net?
    After mucking around with a few searches on Google, I've gotten the domain name to stick since running domainname returns tolharadys.net. Also I can change the hostname as reported by 'hostname' temporarily by running 'hostname skuld.tolharadys.net' in Terminal.app. However, this isn't persistent after reboots. Ideas are welcome.

    You would need a DNS server on your network configured to answer authoritatively for that particular subdomain.

  • Change Groupwise system name, po name and domain name?

    Hello Board,
    we want to migrate a Groupwise 7 System (Netware) to a Groupwise 8 System (Linux).
    Doesnt sound that difficult, but we dont want to use the names for the system name, the post office and the domain (groupwise domain, _not_ internet domain) which were used on the old system.
    Currently iam trying the way mentioned in TID 10077372, which mentions merging the two systems and then delete the old System.
    Am i on the right way? Do you have any hints?
    Any help appreciated.
    best regards
    sven

    Grewes,
    Ok you have a GW system(s) that you do not like the names and you want to change them. Not a problem. As you stated, and as Tommy said -merging works.
    The process you need is to build a new GW system -same as the version you have running preferred. Set it up as you like it -name-wise. Then, merge the older systems (branches) into the new system you built. Then you will have to build new domains/post offices and move mailboxes from the old GW branches into the new domains/post offices. When its all done -delete the old, and you are done.
    I have done many different variations of this type of migration/merge/consolidation. It works, its just a lot of work. Just make sure to plan it all out on paper first, document it, then go forward.
    Good Luck!
    Take Care.
    Gregg A. Hinchman
    Consultant
    [email protected]
    www.HinchmanConsulting.com
    A Novell Consulting Partner
    317.329.0288 Office
    413.254.2819 eFax
    "Courage is doing what is right."
    "Do not be bound to any doctrine, theory or ideology, even Buddhist ones. All systems of thought are guiding means, not absolute truth." Thich Nhat Hanh, Vietnamese monk.
    Book Travel @: www.booknewtravelnow.com
    >>>
    From: grewes<[email protected]>
    To:novell.support.groupwise.migrations
    Date: 8/20/2009 6:56 AM
    Subject: Re: Change Groupwise system name, po name and domain name?
    Thank you for your reply.
    I do not want to keep the names.
    If i want to link this domain to another branches domain and the domain
    is called the same this doesnt work AFAIK.
    grewes
    grewes's Profile: http://forums.novell.com/member.php?userid=3563
    View this thread: http://forums.novell.com/showthread.php?t=383606

  • Server host and domain name have changed, which files do I edit?

    I just changed my Linux box server name and host name. I am going to edit the:
    tnsnames.ora
    sqlnet.ora
    listener.ora
    files to reflect the new host and domain name, are these the only files I need to edit?
    Thanks!

    OK here is my output when I try 2 different tnsping commands on my remote Linux box from my local PC:
    1.)
    C:\Documents and Settings\Rick>tnsping db.host.mtdomain.com
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 13-NOV-2005 07:38:55
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    C:\oracle\ora92\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve name
    2.)
    C:\Documents and Settings\Rick>tnsping mydomain.com
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 13-NOV-2005 07:36:07
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    C:\oracle\ora92\network\admin\sqlnet.ora
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SID=*)(SERVICE_NAME=mydomain.com))(ADDRESS=(PROTOCOL=TCP)(HOST=mydomain.com)(PORT=1521)))
    OK (250 msec)
    Here are my sqlnet.ora, listener.ora, and tnsnames.ora
    # SQLNET.ORA Network Configuration File: /home/oracle/Oracle9i/product/9.2.0/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DEFAULT_DOMAIN = host.mydomain.com
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    # LISTENER.ORA Network Configuration File: /home/oracle/Oracle9i/product/9.2.0/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host.mydomain.com)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /home/oracle/Oracle9i/product/9.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = db9i)
    (ORACLE_HOME = /home/oracle/Oracle9i/product/9.2.0)
    (SID_NAME = db9i)
    # TNSNAMES.ORA Network Configuration File: /home/oracle/Oracle9i/product/9.2.0/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DB.host.mydomain.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host.mydomain.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = db)
    EXTPROC_CONNECTION_DATA.host.mydomain.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    INST1_HTTP.host.mydomain.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    )

  • How to change host name and domain name in installed Cisco Meeting Place Express 2.0?

    Hi
    I have  Cisco Meeting Place Express 2.0 installed on server. Meting Place uses Linux (Red Hat) as base operation system. Please tell me how I can change host name and domain name for Meeting Place Express application to integrate it into corporate domain infrastructure.
    Thanks in advance!!!
    Sincerely yours
    Sergey Bondarenko

    Hi
    Thanks for your attention for my humble problem.
    I have performed Meeting Place Express configuration through the “net” command.
    But now unfortunately I can't connect to meeting place through web browser. I just get blank page.
    Though I can reach the server with help of ssh. I think my DNS works properly because I can resolve the ip address of  cumpxvoice .uclab.com and cumpxweb. uclab.com with help of dig command.
    Have you any idea?
    A lot of thanks in advance!!
    Sincerely yours Sergey Bondarenko
    Here I have printed the net configuration output of Cisco meeting Place Express:
    [root@cumpxvoice root]# net
    This is the MeetingPlace Express network configuration utility.
    Up to the point where you save changes, it is safe to hit ^C to get
    out at any time, in which case nothing will have changed.
    1) List current configuration
    2) Configure Ethernet port 1
    3) Configure Ethernet port 2
    4) Configure service bindings
    5) Set host names
    6) Set domain name
    7) Configure DNS service
    8) Configure NTP service
    9) Configure routing
    10) Done
    Select: 1
    Primary/audio host name: cumpxvoice
    HTTP host name:          cumpxvoice
    RTMP host name:          cumpxweb
    Domain name:             uclab.com
    Service bindings:
    Audio:                   port 1 (eth0)
    Web browsing (HTTP):     port 1 (eth0)
    Web conferencing (RTMP): port 2 (eth1)
    Port 1 (device eth0):
    IP Address:      10.62.60.116
    Network mask:    255.255.255.0
    Default gateway: 10.62.60.1
    Link setting:    autoneg on
    Port 2 (device eth1):
    IP Address:      10.62.60.117
    Network mask:    255.255.255.0
    Default gateway: 10.62.60.1
    Link setting:    autoneg on
    Static routes:
    Destination      Gateway          Network mask     Port
    0.0.0.0          10.62.60.1       0.0.0.0          1
    DNS Servers:
    10.62.60.115
    10.0.1.4

  • How to change the name / IP address and domain name for BOE Server

    Hello,
    We want to change the name / IP address and domain name for BOE Server, please could you indicate the steps or procedure to follow?
    I need your help
    thank you

    If it's 3.1 just change them, shouldn't cause any issues if by domain name you are referring to changing the domain the computer belongs to. If you are changing your domain for AD authentication then you will may have to take quite a few steps if the old domain is going away. Let us know.
    Regards,
    Tim

  • Difficulty changing computer name and domain name

    I have a working Xserve with the latest Snow Leopard Server and am having difficulty reconfiguring it from its keyboard.
    I would like to edit the computer name and domain name and maintain all other server settings. I would prefer to do this off-line. However Server Admin appears not to work off-line and any attempt to change computer name or domain name removes all server settings from view including the serial number. I can recover everything by reinstating computer name etc and restarting on-line.
    Is the serial number tied to the computer name and/or domain name?
    Is there any way to retain my existing server settings for a different domain?
    Is there any way to progress any of this off-line?

    This has now been resolved. This note is to assist others who have the same problem.
    1 - I had been changing the computer name in the place I had always done it - System Preferences/Sharing. This confused Server Admin. Reverting to the original name and changing computer name and location within Server Admin resolved the issue. That is System Preferences/Sharing is updated by Server Admin but not vice versa.
    2 - Playing with these things can corrupt Server Admin plist resulting in a restarted Server Admin not seeing the edited server even with the server otherwise fully functioning. Trashing Server Admin plist resolved this for me without loss of server settings.
    3 - Having set it up off-line I experienced difficulty as soon as I went on-line. This was resolved by changing the server from 'local' to its full domain name. I have no explanation for this as the same settings had previously worked with 'local'.
    4 - Server Admin can take a long time to find settings and occasionally failed to do so until after a restart.
    The result can be seen here: http://links.open.ac.uk/ - Since Apache refuse to provide hit counter support (there are several public posts of mine on the subject) I use JavaScript to retrieve the count from an old QPQ server running on a G3 with OS 9.

  • Valid windows username and domain name

    Hi,
    can anu one help me with regular expression of valid username and domain name for windows
    Abdul Khaliq

    figure out the rules and restrictions for those names, and it shouldn't be too hard to come up with a regular expression to describe those rules.
    Most likely it involves nothing more than checking for the length of the name and the existence of a small set of disallowed characters.

  • How can I override the DNS Servers and Domain Name used by my Airport Time Capsule?

    The defaults picked up from my ISP's DHCP are to use the ISP's DNS servers and ISP's domain. I do not want this.
    With my prior router I set the DNS servers to Google's Public DNS (8.8.8.8 and 8.8.4.4) and my domain to either "bannister.us" (which I own) or "bannister.home". I do not want simple names resolving to some ISP default. (Yes, I know exactly what this does.)
    In the Apple AIrport Utility (version 6.3.2) the fields for DNS and Domain do not allow editing. (Why??)
    Is there some way to override this?

    Unfortunately not one that will work with the latest version TC.
    The way around it is to use a different router.. It can be a very simple router.. I usually recommend units like the TP-Link WDR3600 as they take good third party firmware like gargoyle, openwrt, dd-wrt.. ie they have real controls and beyond that a proper Linux firmware with command line interface.
    You can then change the TC over to static IP. It will not be the router.. but it will effectively become the local dhcp server.
    I have adsl so I cannot reproduce your system.. I have a bridged modem.. a router.. AC66U.. and a TC.. but the TC is not in bridge.. it is in static IP mode.
    Let me demonstrate.
    By setting a range on the main router from 1-199 (leave a space.. ) so set the TC to 192.168.2.201 and then you can set DNS and domain as you like. Set the dhcp range (leave a space) you could use 203-253.. then I use the main router as 254.
    It is brilliant.. all computers behind the TC receive the IP from the TC with whatever IP and dns (and domain although I haven't changed it).. Effectively the TC works as its own dhcp device.. but is merely a secondary dhcp server to the main unit.
    (This gives me netflix which is why I do it.. from well outside the US).
    It may be of use.
    Why leave a space.. well it helps it to work.. I have not tested it but another person reported issues and found leaving a space .. ie last ip in the router.. 199, static ip 201.. first dhcp 203 (i used 205 to help me keep count!!). worked.. I have not tried to reproduce the problem.. so I reproduce the solution.. it might be like sheep jumping over the fence.. even if the fence was removed the sheep keep jumping over at the same place. Just say bahhh and do likewise.

  • How to change Host and domain name on APS 10g R2

    Hi,
    I have installed oracle application server 10g rel.2 I want to change the host and domain of the system, what should I do, Plz help.
    Thanks and Regards.
    Khawar

    Hi,
    Thanks to all of you for reply, I started without reading any manual to modify host and domain name and after expending several hours finally decided to reinstall APS, with new installation forms runing ok but report server having problem if you see the status of report server in enterprise manager it shows green mark(if you want to stop it via EM it will not), if you check with Report Queue manager it says no report server with the given name,
    if you check the report with GETSERVERINFO via browser it says
    "REP-51002 Bind to report server AAAAA failed. some one have idea."
    some one plz explain me how can I fix it.
    Thanks and Regards.
    Khawar

  • I am having problems to run logic pro 9, there is an error display that says I need to set bonjour and that this app serial number has been used by another red user,  could anybody guide me?

    I am having problems to run logic pro 9, there is an error display that says I need to set bonjour and that this app serial number has been used by another red user,  could anybody guide me? actually, my computer can't start  since three days ago, could it be the same problem?

    Logic is the APPlication (program, app) that you are having the problem with.
    Logic Pro can take advantage of other computers on your local (home or work) network to help it do "heavy lifting" data chores by using Bonjour and a feature called Nodes.   It seems that Logic is attempting to find and connect to another machine on your network.
    Do you have Logic installed on another computer there?  That may be the source of the confilict.
    You might want to post this question in the Logic Pro Community.
    Be sure to indicate the version of Logic Pro that you are using.  I'm sure the folks there can help you out.

  • How to retrieve username and domain name on Macintosh.

    Hi,
    Can anyone tell me how to retrieve username and domain name on Macintosh
    Thanks
    Priyanka.

    There is no system property for the domain name.
    Can you please tell me some other way for solving
    this problem.No. If it's not an environment variable (System.getEnv IIRC) and no property, you can't get it without native calls using JNI or Runtime.exec/Process.

Maybe you are looking for