How do i get a network name? HOSTNAME=... doesn't work anymore

Hi,
I'm sure this question sounds very n00by, but this used to be working just fine in archlinux by setting the hostname variable and that was the network name as well. No issue and worked like a charme. However, i reinstalled my system and i got the (unpleasant) surprise of a lot of changes.
So, what's the "new" equivalent of HOSTNAME="pc-name" so that it works on the network again? I'm using just the default stock network stuff but with a static ip, no special things.
Right now i do have my hostname set in rc.conf but i can't ping my machine by that name. No, nothing in the local network changed. It really is only a reinstall of a local machine.
Cheers,
Mark

2ManyDogs wrote:
Do you also have the hostname set in /etc/hostname and /etc/hosts?
ArchWiki wrote:
A host name is a unique name created to identify a machine on a network. With Arch Linux, a machine's host name is set in /etc/hostname or until a restart using the hostname command. Host names are restricted to alphanumeric characters. The hyphen (-) can be used, but a host name cannot start or end with it. Length is restricted to 63 characters.
Simply put your host name in to /etc/hostname (archlinux is the host name in this example):
archlinux
After setting a host name, it is also important to include the same host name in /etc/hosts. This will help processes that refer to the computer by its host name to find its IP address, as well as programs that rely on the gethostname() system call to determine the system's host name.
Edit /etc/hosts and add the same HOSTNAME you entered in /etc/hostname:
127.0.0.1 archlinux.domain.org localhost.localdomain localhost archlinux
And do you have a nameserver in /etc/resolv.conf?
If none of this works, can you try using dhcp in your rc.conf just to make sure it's a config problem?
https://wiki.archlinux.org/index.php/HO … e_hostname
Hi,
I tried your suggestions and using dhcp it works partly.
This is my static config:
interface=eth0
address=192.168.1.99
netmask=255.255.255.0
broadcast=192.168.1.255
gateway=192.168.1.2
When i use dhcp (so comment out the lines except interface=eth0) then i do get the name assigned, but i can't ping the pc or access it by name. I can by ip.
If you have more suggestions, please do share
Cheers,
Mark

Similar Messages

  • How do I get a network name?

    My printer always asked for a network name.  Where do I find that?

    The network name is the name configured for your home router.
    In order to guide you any further please clarify your printer model.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • TS1398 how do i get the network name?

    I want to connect Wi-Fi to my iPad

    Settings>Wi-Fi>Choose a Network
    http://i1224.photobucket.com/albums/ee374/Diavonex/ee9bdb88.jpg

  • How to get the server name/hostname on which JVM is running?

    How to get the server name/hostname on which JVM is running from the Servlet or normal class?

    InetAddress.getLocalHost()

  • How do I get the user name and password for the Apple Extreme Router to connect to a Slingbox

    How do I get the user name and password for the Apple Extreme Router to set up my Slingbox?  It will not accept the Apple Extreme Name and password.

    The AirPort Extreme does not have a User Name, but it does have a device name and device password, which you may have already tried.
    There is also a Wireless Network Name and Wireless Network Password for the AirPort Extreme, which might be what the Slingbox is looking for if you are trying to connect it to your wireless network.
    There are no other "user names" or "passwords" on the AirPort Extreme.
    You established the device name, device password, wireless network name and wireless network password when you originally configured the AirPort Extreme.
    If you cannot remember these, you will need to perform a Soft Rest to reset everything. Follow the instructions in this Apple support document:
    Resetting an AirPort Base Station or Time Capsule FAQ

  • How do I get the file names on a customized proof sheet?

    How do I get the file names on a customized proof sheet?

    Actually, I really don't know what you say.
    But when you see the properties of a file in Windows, you can see there are two file size. One is called "SIze" and the other one is called "Size on disk".
    Therefore, I would like to know the size on disk but not just the size.

  • I hit Forget Network and now cannot get back onto my wireless home network. All of my other computers and iphones are fine.  How do I get the network back?  It shows in my list of networks but when I use the password and try to join it says not connected.

    I hit Forget Network and now cannot get back onto my wireless home network. All of my other computers and iphones are fine.  How do I get the network back?  It shows in my list of networks but when I use the password and try to join it says not connected.

    See if the iPad will accept the password after you restart it. It's worth a try.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    You could also try a reset as well.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • How can I get Sender Display Name using Get-MessageTrackingLog?

    Hi, could you please help me. We have got a monitoring system at work which monitors some devices, so if something wrong happening with these devices email is sent from MASTER email (Customer Name <[email protected]>) to us. I'm trying to get a list
    of all emails of that monitoring mailbox using PoweShell command
    Get-MessageTrackingLog and export them to CSV file. In the end of the day I need CSV file with 3 columns: TimeStamp, MessageSubject and SenderDisplayName! Yes, I need Sender Display Name cause all emails are sent from one MASTER email
    (Customer Name <[email protected]>) and only difference between them is sender Display Name which is cexactly what I need.   
    This is the code I'm using:
    Get-MessageTrackingLog -EventId Receive | Select Timestamp, MessageSubject, Sender | Export-CSV C:\NagiosAlerts.csv
    –NoTypeInformation
    So how can I get sender Display Name(Customer Name) using Get-MessageTrackingLog insted of Sender email (<[email protected]>)? 

    The DisplayName is not recorded in the Logs only the EmailAddresses are so there Is nothing you can do with Message Tracking to get this the way you want. You need to look at another property may soureIP or include something in the Subject
    of the Email (eg a customerId in the Subject is a much better option) to give you some differentiation. Otherwise you need to access the Email directly from the Mailbox it was sent to and then extract the DisplayName from the message (or use a journaling
    on those emails etc)
    Cheers
    Glen

  • How do I get the file name?

    I'm kind of new to javascript -- working with a colleague who has Adobe Acrobat Professional -- I've got an *old* version of Adobe Acrobat and most of the functions don't work -- but how do we get the file name -- we're trying to develop an application -- so if the user opens c:\something.pdf, we'd like to know the file name (something.pdf).
    If we get a fully qualified path, that's fine -- I think I can parse it.
    Thank you in advance.

    The 'paty' property of the 'doc' object has been available since version 3.01.
    Using the following in the JavaScript console when the Acobat JS API Refenece is open:
    this.path;
    returns:
    this.path;
    /C/Program Files/Adobe/Acrobat 8.0/Help/ENU/JS_api_reference.pdf

  • How do I get the directory name that a class is located in?

    How do I get the directory name that a class is located in? I have a class located under /com/dhcmc and I want to be able to retrieve the "/com/dhcmc" that the class is residing under so that I can then use this directoy name to build a relative path name for the other directories supporting the application such as the images directory etc i.e.
    |---com
    |   \---dhcmc       (my class resides here)
    |       +---images  (supporting app dirs under the class dir)
    |       +---config  (supporting app dirs under the class dir)

    You can try the methods.
    Class.getClassLoader()
    Class.getResourceAsStream()
    Class.getResource()
    You probably wont get the complete directory path, but you might
    be able to load the files relative to your classes directory.

  • How can I get the infoset name by giving the name of a program of a query?

    How can I get the infoset name by giving the name of a program of a SAP Query?
    Regards,
    Subho

    Use FM RSAQ_DECODE_REPORT_NAME.
    You can also use AQLQCAT table.

  • How can i get "nearby(city name)" if update my status on Facebook?

    How can i get "nearby(city name)" if update my status on Facebook?

    On Sun, 3 Feb 2008 22:55:19 +0000 (UTC), "kai1111"
    <[email protected]> wrote:
    >I've recently finished my webpage
    (kensingtonconcertseries.com),.....then my
    >client wanted to change the name of one of his pages from
    'Marold Duo' to
    >'Rodewald-Morebello Duo.' All of my links to that page
    are to the original
    >page(MaroldDuo.html). Arrrhhhhh!!! Is there anyway I can
    change the name of
    >the page and have all the links within the website update
    automatically?
    If you change a file name within Dw's File manager - it will
    offer to
    update all pages linked to it, accept that invitation
    ~Malcolm N....
    ~

  • How do I get the procedure name

    Hi,
    With help of our application we are updating one table (P_Balance) in this account status and date through some procedures.
    in some situation only account status column get proper value, but date column having NULL value.
    Now we decided to track this, through which procedure this date column get updated null value.
    For this I decided to write one trigger for the table "P_BALANCE" through which procedure this update is happening.
    How do I get the procedure name.

    You could use DBMS_UTILITY.FORMAT_CALL_STACK and do it. Something like this.
    SQL> create table track_call_stack
      2  (
      3     program_name varchar2(30),
      4     call_stack varchar2(4000)
      5  );
    Table created.
    SQL> create table t
      2  (
      3    no integer
      4  );
    Table created.
    SQL> create or replace trigger t_trig before insert on t for each row
      2  begin
      3    if :new.no is null then
      4       insert into track_call_stack
      5       (
      6          program_name,
      7          call_stack
      8       )
      9       values
    10       (
    11          'T_TRIG',
    12          dbms_utility.format_call_stack
    13       );
    14    end if;
    15  end;
    16  /
    Trigger created.
    SQL> insert into t values (null);
    1 row created.
    SQL> select * from track_call_stack;
    PROGRAM_NAME                   CALL_STACK
    T_TRIG                         ----- PL/SQL Call Stack -----
                                     object      line  object
                                     handle    number  name
                                   3a7ac0ea8         1  anonymous block
                                   3a2bb9d78         3  ARBORU.T_TRIG
    SQL> create or replace procedure p1
      2  as
      3  begin
      4      insert into t values (null);
      5  end;
      6  /
    Procedure created.
    SQL> create or replace procedure p2
      2  as
      3  begin
      4      insert into t values (1);
      5      p1;
      6  end;
      7  /
    Procedure created.
    SQL> exec p2;
    PL/SQL procedure successfully completed.
    SQL> select * from track_call_stack;
    PROGRAM_NAME                   CALL_STACK
    T_TRIG                         ----- PL/SQL Call Stack -----
                                     object      line  object
                                     handle    number  name
                                   3a7ac0ea8         1  anonymous block
                                   3a2bb9d78         3  ARBORU.T_TRIG
    T_TRIG                         ----- PL/SQL Call Stack -----
                                     object      line  object
                                     handle    number  name
                                   3a7ac0ea8         1  anonymous block
                                   3a2bb9d78         3  ARBORU.T_TRIG
                                   3a2b32a10         4  procedure ARBORU.P1
                                   3a61db6a8         5  procedure ARBORU.P2
                                   3a653c3a0         1  anonymous block

  • C Programming: How can we get the filesystem name for a given file-path?

    C Programming: How can we get the filesystem name for a given file-path?
    Say I have a filepath=/mnt1/file1
    Using some OS API like stat, can I get the Filesystem /mnt ?
    Thanks in advance,
    -V

    Enter the command up to the point of entering the file path and add a space, then drag the file into the terminal window. It will fill out the path.
    If you need to go further into the contents of the Application package, you can continue with /Contents...
    Another way is to start typing and then hit Tab to auto-complete. It will stop where it can't determine the next letter.
    So, type /App tab and it will fill in /Applications. Type a / and start with the name of the app, then tab and it should complete. Continue till you have the correct path.
    Spaces will be replaced with \<space>, so, App Store would end up as /Applications/App\ Store.app

  • How do u get past network an password it says network not avalible on start up , bought on line showed up like this can't get in to reset

    How do u get past network an password it says network not avalible on start up , bought on line showed up like this can't get in to reset

    Try going to system preferences on the Apple menu,>start up disk.select mac osx hd restart.  If you can't get there, hold theoption key when you power up, this will open the start up manager, select the mac osx hd. click the arrow under i and it should boot to the internal drive.  If you don't the password, you will need the install disks to change it.

Maybe you are looking for

  • Is anyone having problems with graphics since yesterday?

    Icons and graphics, photos and videos, are not showing in Firefox for me. I had to use Internet Explorer for last two days! Help!

  • SAP Script - Formatting Line

    Hi Experts, In a classical ABAP report we make use of write:/20 'Text'. to print text from the 20th column. Can we do something similar in a SAP Script Page Window. I have a box and lines drawn. Now I want the text to start exactly after the vertical

  • Dreamweaver CS6 crashing on spell check of whole document, Windows 8.1

    After using Dreamweaver CS6 happily for quite a while, it is now crashing regularly when I try to spell check more than a very short section. I recently updated from Windows 8 to Windows 8.1 and was prompted to update Dreamweaver afterwards, which I

  • SUN Volume Manager with rpc.metacld error

    Solaris 10 (x86) with latest recommend patch cluster ; SUN cluster 3.1 u4 with patch 120501-10 There is always a rpc.metacld error. How to fix this issue? bash-3.00# scstat -n -- Cluster Nodes -- Node name Status Cluster node: arcsunx42km2545 Online

  • Downgrade to Leopard on new mac mini

    I just got my new mac mini two weeks ago, and I've had enough of Snow Leopard, it's cack! Is it possible to downgrade to Leopard on the new system? it had SL pre-installed. I've put a Leopard retail disc in, but nothing is happening, it' been over an