Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Assigning hostnames with DHCP

I'm setting up DHCP on my ASG120.  For my servers I want to assign IP addresses in Network Services -> DHCP -> Static MAC/IP Mappings.  It only allows me to assign the IP, not provide the hostname.

Is this functionality possible on the device or do I need to continue using my existing DHCP server on one of my Linux boxes?

-Tim


This thread was automatically locked due to age.
  • Hi, Tim, and welcome to the User BB!

    Yes, we rarely use the Astaro for DHCP since it's really a very basic service.  This may change in the not-too-distant future as the nubmer of customers using REDs increases and Astaro reacts to their needs.

    Cheers - Bob
  • Hi, 
    You can create static DNS entries in Astaro's DNS server, which should achieve what you need.

    Barry
  • BarryG,

    I'm confused.  Doesn't my DHCP server have to hand out both the IP and the hostname as part of the DHCP lookup when my servers boot?  Or will the servers take the IP they are given and do some sort of reverse DNS with the Astaro DNS server to determine what they should be setting their hostname to?

    It would be great if the ASG can do this, I'd like to be able to shutdown the DHCP daemon I'm running on one of my Linux boxes.

    -Tim
  • Tim, the usual approach for servers (and other devices used by random clients) is to assign a fixed IP on the server itself.  Using static mappings in the Astaro DHCP accomplishes the same thing.

    Barry's solution, to create a DNS static entry associating an FQDN to the numeric IP, is the correct one.  Beginning with V8, Astaro also can do reverse DNS, but that's not related to your question.

    Cheers - Bob
  • If I put the static mapping in Astaro DHCP and a static DNS entry in Astaro will my machines end up with the correct hostname?

    -Tim
  • If I put the static mapping in Astaro DHCP and a static DNS entry in Astaro will my machines end up with the correct hostname?

    The answer to that is probably, "Yes, inside your network."  I don't think I understand your concern though.  What problem have you experienced in the past that you're concerned about?

    Cheers - Bob
  • On my Linux servers (CentOS) I normally setup the networking such that the server use DHCP to acquire its IP address and hostname.  I'm currently running a DHCP server on a CentOS box which has a defined IP address.  All other machines get their IP and hostname from this server.

    So, my concern is that I want to make sure that whatever I run for a DHCP server provide both IP and hostname, not just IP.

    -Tim