[Solved] Set domain name on systemd system

Since the demise of rc.conf I have been unable to find out how to set the system's domain name. I tried "hostnamectl set-hostname hostname.domain" but it just set the hostname to "hostnamedomain". I also tried setting it manually through the hostname utility but it broke GUI applications (could not connect to display error). No luck with google or tge wiki either. Any ideas?
Last edited by jiggpig (2013-02-04 16:16:55)

First of all, see "man archlinux" for how to set the hostname.
Second, is Bash treating the period as a special character? Try "hostnamectl set-hostname hostname\.domain".
Thirdly, my hostname is just set to "archsystem". Are you thinking of what goes in "/etc/hosts"?
# /etc/hosts: static lookup table for host names
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost archsystem
::1 localhost.localdomain localhost
# End of file
Last edited by drcouzelis (2013-02-04 04:18:47)

Similar Messages

  • DNS Domain Name for SAP System

    Hi,
    I am installing BI7.1 , it is asking for DNS Domain Name for SAP System.
    What to give i dont know please some one help
    Thanks,
    Jack

    Hi,
    Pls chk this link;
    http://en.wikipedia.org/wiki/Domain_name_system
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/994a06ed-0c01-0010-878b-e796a9060209
    Regards
    CSM Reddy

  • How to get the domain name from the System

    I need to get the domain name from the system in JDK 1.1.8
    Any Ideas?

    InetAddress.getLocalHost().getHostName() will get you the name of the computer the code is executed on. If that isn't the "domain name" then perhaps you could give more detail about what "domain" you are trying to find the name of.

  • Setting domain name

    Hi all,
    Can I use my server to set up the internal domain name? I want to fix it to be something else than local and distribute it over the internal network.
    Thanks,
    Ziv
    PowerBook G4   Mac OS X (10.4.3)  

    What you're needing is quite simple. I've boiled down the procedure into the following recipe. You may find my other posts useful: http://discussions.apple.com/thread.jspa?threadID=236181, http://discussions.apple.com/thread.jspa?messageID=661415, and http://discussions.apple.com/message.jspa?messageID=1221660
    1. Go ahead and configure the DNS service on your server. Create a zone with a suffix like mycompany.private and give the nameserver a machine name, defining your server's fully-qualified name. Remember your nameserver is the server itself, so you should end up with a fully-qualified server name like myserver.mycompany.private.
    With DNS configured, you've only defined a name that matches your server's IP address.
    2. Tell your server to use itself as a nameserver. In the Network pane of System Preferences, add the server's primary IP address to the top of its name server list, or make the change remotely with networksetup.
    You'll also need to tell each of your clients to use the server as a nameserver for local DNS. You can manually add the server to the client's nameserver list in the Network pane of System preferences, or you can add it to your router's list of nameservers that it passes on to clients via DHCP.
    On the server and one a test client, use lookupd -d to test local DNS resolution:
    a. Verify address to name resolution:
    lookupd -d then
    >hostWithInternetAddress: <server's IP> and press return
    Look for the server's DNS name after name
    b. Verify name to address resolutioin:
    lookupd -d then
    >hostWithName: <server's DNS name> and press return
    Look for the server's primary IP after ip_address
    3. Check the server's hostname. If you have UNIX experience, this may seem a bit strange, but Apple differentiates between what it calls a local host name and the hostname. With a fresh installation of Mac OS X Server, /etc/hostconfig contains the line HOSTNAME=-AUTOMATIC-, which means that the hostname is determined by the first item that's true in this list:
    First try: The hostname is set to the DHCP client ID if the server's primary IP was configured in this way.
    Second try: The hostname is set to the name returned by reverse lookup of the server's primary IP address, if you have an existing nameserver.
    Third try: The hostname is set to the local host name, which is the mDNS (Bonjour) name. This is the name that ends with .local
    Final try: The hostname is set to the string "localhost".
    Since you're using your server as a DNS name server (config steps 1 & 2), neither the first or second try will return a hostname; and, since the mDNS process is always running, the hostname will be defined as the local host name provided by Bonjour. This explains why you're getting the same "dot local" name even after configuring DNS.
    For this reason, you need to manually define the hostname.
    First, edit the /etc/hostconfig file and replace HOSTNAME=-AUTOMATIC- with HOSTNAME=<qualified name from step 1>. For example, replace HOSTNAME=-AUTOMATIC- with HOSTNAME=myserver.company.private.
    Next, issue sudo hostname <qualified name> to update the hostname cache. Now you're in business with a real hostname.
    Note that you still have a local host name (mDNS/Bonjour name). That's still going to exist even though you have a fully-qualifed hostname defined by the server's DNS service and the hostconfig entry. The name you edit in the Overview section of Server Admin or the Sharing pane of System Preferences is, unfortunately, just that local host name; in short, there's no GUI to edit the hostname.
    5. Now you're ready to configure Kerberos and other services that depend on a "real" hostname provided by DNS. Please see my post: http://discussions.apple.com/message.jspa?messageID=1221660
    Hope this helps.
    --Gerrit

  • WLST setting domain name and ListenAddress attribute

    using weblogic 9.2
    just getting started with WLST and ran into two issues:
    1) want to state the ListenAddress for both the adminserver and application servers with the script below:
    cd('Servers/AdminServer')
    set('Name', 'adminserver')
    set('ListenAddress', 'localhost')
    set('ListenPort', 7001)
    cd('/')
    create('appserver1', 'Server')
    cd('Server/appserver1')
    set('ListenAddress', 'localhost')
    set('ListenPort', 7003)
    ....however get the error "Property Listen address of Server appserver1 is invalid. The server has the same combination of listen address and (default) port as other server" which clearly isn't the case since the ports listed above are different.
    2) second issue is more of a complaint that the domain name is automatically derived from the domain directed in the writeDomain command. want to specify another domain name. is this possible?
    thanks / matthew

    Ok update changing the hostname in the field does NOT allow me to edit the .local part. In fact it converts Steve.mydomain.net.local to Steve-mydomain-net.local.
    But I got my windows workgroup changed and I am showing up with the correct workgroup name from my other servers.
    Also, lets say you only have a couple of computers on your home network right? So dedicated dns is kind of overkill especially when most of them are laptops rebooting all the time.
    Well, your mac os x box has a hosts file. /etc/hosts as in if you want to edit sudo vi /etc/hosts. So you keep the computers pretty much in sync from those files.
    I was afraid the information would not be persistent across a reboot. It was.
    So, two out of three ain't bad. I read in the server forum its a pain in the ***. I was almost thinking of doing the hostconfig trick but I saw an Apple bulletin saying do NOT do that.

  • Setting domain name on CIMC

    Hi,
    Is it possible to set a domain name for CIMC? - there does not seem to be an option to do this in the CIMC GUI.
    Thanks

    You can setup a hostname:
    Procedure
    Step 1  
    In the Navigation pane, click the Admin tab.
    Step 2  
    On the Admin tab, click Network.
    Step 3  
    In the Network pane, click the Network Settings tab.
    Step 4  
    In the Hostname field, enter the name of the host.
    Step 5  
    Click Save Changes.
    http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/c/sw/gui/config/guide/1-4-1/b_Cisco_UCS_C-Series_GUI_Configuration_Guide_141/b_Cisco_UCS_C-Series_GUI_Configuration_Guide_141_chapter_01000.html#task_10637AC91E1C4F55ABEC112C91AD29EA

  • WRT1900AC - WPA2 on Guest Network and Setting Domain Name

    I'm configuring a new WRT1900AC (version 1) and have a couple of questions.  The first should be easy, on the Connectivity -> Internet Settings page on the right side under the heading Optional the Domain Name (provided via the DHCP server, Comcast in this case) is displayed, but I cannot change it.  How do I set the Domain Name to reflect my local domain? The second question is a bit more daunting.  I have two main wifi segments (one each on 2.4Ghz and 5Ghz) that are each secured by WPA2.  They work great so far.  I also have two Guest wifi segments (one each on 2.4Ghz and 5Ghz), I cannot figure out how to secure these with WPA2.  You can set a passwword for each of the Guest wifi segments, and instruct users to open a web browser after connecting and enter this password, but that's not a secure connection.  Please tell me there is a way to secure the Guest network via WPA2, nobody wants to use an insecure internet connection in this day and age...... -MC

    That's exactly why you want the connection encrypted, so EVERYTHING you send is encrypted and not sniffable.  The intended use of this Guest network is for renters at a condo resort, who will likely be doing banking and the like while on vacation.  If we only provide an open/unencrypted network for them they can't (or at least shouldn't) use it. I have a Netgear R7500 in place right now, it doesn't have any of these problems (e.g. you can specify the domain name even on with a dynamic WAN IP, and all 4 network segments are WPA2 encrypted).  Unfortunately, it's totally unreliable - the 4 network segments randomely disappear and stop working all the time, and the signal range is poor.  I "downgraded" to this 1900AC because this router has a better reputation for stability and range (and indeed, I've been testing it for several days now and stability and range seem to be its strong points, not a single problem so far), but these firmware decisions by Linksys are forcing me to reconsider this router.  -MC

  • [Solved] Find domain names from ip addresses bash cli

    I am trying to figure out if there is a reliable way (or any way) to convert ip addresses to domain names in the terminal. Like etherape does.
    Last edited by dodo3773 (2011-06-03 23:20:29)

    karol wrote:Like 'whois'?
    I tried whois and cannot seem to get the data I am looking for. It tells me a lot of good information. Just no actual domain name.

  • [SOLVED] Set computer name (?)

    Hey,
    whenever I start Arch I get the message 'Arch Linux x.x.x-x-Arch ((none)) (ttyx). Thus, logging in I get username@(none).
    How do I get rid of the (none)? Isn't that suppose to be my computer name? If so, how do I rename my computer?
    Sorry for bugging with newbie questions, but can't seem to find a useful answer, probably due to me not understanding where the problem lies.
    Thanks!
    Last edited by foreveraloneguy (2012-01-26 00:30:35)

    foreveraloneguy wrote:
    I admit I haven't read the beginners guide. I didn't think that I will run into so many 'walls'.
    I actually tried changing hostname, just forgot to reboot.
    ... good old reboot. Sometimes it even helps in unix systems...
    Good ol' reading/searching/wiki-ing - it helps no matter what system you have

  • How to set domain name to a site that was developed using netbeans

    I developed a website using netbeans.I want to give some DNS like site1.com to it.Where can i set that ?
    Thanks in advance

    1) You post questions in the wrong forum. (As you title says this is a Swing question).
    2) Not once in your last 10 postings have you ever bothered to reply to a posting to thank people for the help you have received.
    I seriously doubt you well ever get answers in the future.

  • [SOLVED] multiple host names and domains configuration

    Hi everybody,
    probably this is a less than newbie questions but I can't figure out what is the right way to set my hosts files within this framework:
    1) Two registred domains pointing to my ip address: www.bonfus.it, argo.mooo.com
    2) nslookup of wan ip address:
    nslookup 79.41.201.100
    Server: 192.168.2.1
    Address: 192.168.2.1#53
    Non-authoritative answer:
    100.201.41.79.in-addr.arpa name = host100-201-dynamic.41-79-r.retail.telecomitalia.it.
    3) DDWrt (192.168.2.1) natting traffic to local network and web server
    4) Server PC with services (192.168.2.100)
    My problem is: how should I set domain name within DDWRT router configuration and on the server PC? Is this configuration correct for the pc?
    /etc/hosts/
    #<ip-address> <hostname.domain.org> <hostname>
    127.0.0.1 localhost.localdomain localhost argo
    192.168.2.100 argo.mooo.com argo
    192.168.2.100 www.bonfus.it www
    /etc/rc.conf
    HOSTNAME="argo"
    Thanks,
    Pietro
    Last edited by pie86 (2010-11-28 19:29:40)

    Any domains that are local should point to the local IP in /etc/hosts. You should just need one line.
    Something like this:
    127.0.0.1 localhost.localdomain localhost argo argo.mooo.com www.bonfus.it
    You don't have to put them all in there. For example, you'd only want to add 'www' if you want the www host to resolv to 127.0.0.1. I doubt you'd ever see the host www used by itself. Usually having just the short and long server hostname is enough (argo and argo.mooo.com).
    I think you should have the long hostname in your /etc/rc.conf:
    HOSTNAME="argo.mooo.com"

  • Need to the domain name and computer name in offline mode

    Hi,
    I can not able to login to the windows system, the password i am using is correct. But im getting error "the login method using is incorrect, please contact network admin". I forgot the domain name i set to login to the system. Now Currently i
    dont have the recovery/windows7 disks.  I have Unix in my machine as well. so i have mounted the windows7 parition in linux, and trying to find out the computer\domain name.  so please suggest which file i need to search to get the details.
    Thanks,
    Ravi

    Hi Ravi,
    If you want to know more information about domain name, please take a look at the following article.
    http://technet.microsoft.com/en-us/library/cc731265(v=ws.10).aspx
    Based on my research, the computer name and domain name are stored in the registry key.
    We could find computer name in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName.
    And we can find domain name in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Domain.
    Have you ever  joined a domain?
    If yes, please contact the network admin as mentioned.
    And we can type Domain name\Username and then password to login.
    If you haven’t, we could try to type Computer name\username(.\username) and then the password to login the computer.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • 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

  • Using a domain name email address with BT broadban...

    We've just moved over to BT broadband after 17 years with Demon. I have three email addresses - [email protected] and name at mydomainname.co.uk etc - which I have now pointed to my new btinternet.com address, but after three days of chasing my own tail none of my email is arriving in my BT mailbox.
    Our domain names are hosted by Freeparking. We don't have mailboxes there. The mail has previously been forwarded to our Demon account successfully - different domain names frowarding to different underlying demon addresses.
    Freeparking indicates that it takes about ten minutes to propagate the forwarding change, so after three days i think I can say that I've given it every opportunity. I don't think the problem is with Freeparking's forwarding. I think it's with BT.
    Now, the thing is, besides my three addresses which are not forwarding successfully, there's another domain name address (belonging to my husband) which IS forwarding successfully from Freeparking to BT, but this just happens to be the address we gave to BT as a contact email prior to the changeover from Demon.
    My husband thinks this all may be something to do with grey-listing and that the reason the three domain names are not being accepted at BT is something to do with the fact that the addresses have not been verified as legitimate. Unfortunately it seems that the only way they can be verified as a legitimate address is by receiving and returning a verification mail from BT. Which is where our circular logic finally disappears up its own tail-feathers. We can't receive and respond because BT is not accepting the forwarded mail and we have no other method of accessing it.
    Help, please.
    It looks like we are losing all mail currently sent to those addresses - some of which may be significant business mail that we can't afford to lose.
    I really don't want to have to change all my various email addresses (one personal, one business and one hobby-related) to the new BT one. I have 2400 names in my address book. Changing addresses would just add to the nightmare.
    I feel particularly p155ed off because one of the questions I asked before moving to BT was whether BT accepted domain name addresses forwarded from Freeparking and was told that it wlouldn't be a problem.
    Just as amatter of note, I did call the BT help centre and was told that since my main BT address was working (i.e. receiving and sending direct emails) they had neither the obligation nor the training to solve the domain name problem. Well done BT.
    Solved!
    Go to Solution.

    birdsedge wrote:
    We've just moved over to BT broadband after 17 years with Demon. I have three email addresses - [email protected] and name at mydomainname.co.uk etc - which I have now pointed to my new btinternet.com address, but after three days of chasing my own tail none of my email is arriving in my BT mailbox.
    Our domain names are hosted by Freeparking. We don't have mailboxes there. The mail has previously been forwarded to our Demon account successfully - different domain names frowarding to different underlying demon addresses.
    Freeparking indicates that it takes about ten minutes to propagate the forwarding change, so after three days i think I can say that I've given it every opportunity. I don't think the problem is with Freeparking's forwarding. I think it's with BT.
    Now, the thing is, besides my three addresses which are not forwarding successfully, there's another domain name address (belonging to my husband) which IS forwarding successfully from Freeparking to BT, but this just happens to be the address we gave to BT as a contact email prior to the changeover from Demon.
    My husband thinks this all may be something to do with grey-listing and that the reason the three domain names are not being accepted at BT is something to do with the fact that the addresses have not been verified as legitimate. Unfortunately it seems that the only way they can be verified as a legitimate address is by receiving and returning a verification mail from BT. Which is where our circular logic finally disappears up its own tail-feathers. We can't receive and respond because BT is not accepting the forwarded mail and we have no other method of accessing it.
    Help, please.
    It looks like we are losing all mail currently sent to those addresses - some of which may be significant business mail that we can't afford to lose.
    I really don't want to have to change all my various email addresses (one personal, one business and one hobby-related) to the new BT one. I have 2400 names in my address book. Changing addresses would just add to the nightmare.
    I feel particularly p155ed off because one of the questions I asked before moving to BT was whether BT accepted domain name addresses forwarded from Freeparking and was told that it wlouldn't be a problem.
    Just as amatter of note, I did call the BT help centre and was told that since my main BT address was working (i.e. receiving and sending direct emails) they had neither the obligation nor the training to solve the domain name problem. Well done BT.
    Hi. Welcome to the forums.
    Address verification is not actually needed with respect to forwarding of emails.
    Do you have another email address (e.g. hotmail, gmail etc) that you can forward one of the email addresses to ? This can help check it's workiing, despite the other domain working ok.
    Forgive me for asking, but can you check that the email you're forwarding to is correctly spelt with numbers, periods etc in the right place - it is easy to make a mistake!
    Have you checked the Spam folder in webmail in case all the emails have ended up there ?
    http://www.andyweb.co.uk/shortcuts
    http://www.andyweb.co.uk/pictures

  • Finding IP and fully qualified domain name.

    Okay i have a java program taht runs on ubuntu the latest version. I got java 6.0 using apt-get install. oKay now i wrote a server socket program. But what it also should do is get the fully qualified domain name of the system and its ip address. So now my system is called "tools.myproject.com" okay. I dont have system registered under a domain or somethign but i specify it in my /etc/hosts file. since linux also uses the /etc/hosts file to resolve domain names. Now is there anyway in java that i can get this name. If not that then is there a way i can get the ip of this machine, which is not the loop back address. When i do the InetAddress.getLocalHost().getHostaddress() method or whatever thats there in the documentation i get the loop back address thats specified thats 127.0.0.1 and the canonicalname for taht is some rubbish that i dont need. So can anyone help me out.
    Also i found some NetworkInterface class from which i can get the IP Address of the machine. Also the Canonical Name i get from the IpAddress does it look at the /etc/hosts file or the DNS server?
    Thanks!
    Edited by: mynameissriharsha on Jul 14, 2008 2:42 PM

    Try this
    InetAddress[] inet = InetAddress.getAllByName(InetAddress.getLocalHost().getHostAddress());
    for (int x = 0; x < inet.length; x++)
        System.out.println
            ("IP " + (x + 1) + ": " + inet[x].toString().substring(1));
    }

Maybe you are looking for

  • Using the FM SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi Gurus, I am using the FM SO_NEW_DOCUMENT_ATT_SEND_API1. My requirement needs me to email an attachment. Why is it that when I input A B C in my table, the value I am getting is A                         B                        C wherein I should

  • How do i add my iphone to my itunes account

    I bought an iphone from someone and I do not know how to add it to my itunes account, the phone shows up when you first plug it in but when you click on where it says iphone it disappears.  I would appreciate anyones help.  I am wondering if it is st

  • HELP Itunes wont launch after upgrading

    I downloaded the latest Itunes, and then tried to launch it. I keep getting the following message "error getting file security :\C\program files\get last error 5 I have even tried to remove I tunes through the add & remove section in the control pane

  • Test Application in Flex Builder 3.0 by consuming a WebService

    in the WIKI link you had provided, you have answers for your questions. 1. dataProvider="{abapWS.Zattendees.lastResult.Attendees.item}" (webserviceid.operationname.lastResult.XMLelement.) 2. abapWS.Zattendees.send() (click of the submit button call <

  • Custom domain name pointing issues

    Hi I've set my custom domain name for my webpages and it is working fine - www.domain.com points to my iweb site. But how can i make sure that domain.com (without the www.) also points to my iweb site? I know I could change settings on my domain regi