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

How are dhcpd.conf files generated?

Is the data in the dhcpd.conf file generated on the fly from data stored in a database? Or is the file itself directly modified by ASG? The reason I ask is that there are a number of 'advanced' settings I need to include in my dhcp server for diskless booting, that aren't available via the ASG GUI. ASG warns against manipulating the config via CLI, so I am concerned about simply modifying it directly myself, especially if it gets regenerated every time the firewall restarts.


This thread was automatically locked due to age.
  • In Astaro 6 and earlier, there were 'defaults' files which you could generally modify. I'm not sure that's the case in 7 though, but search these forums for dhcp or dhcpd; there's been some discussions.

    Barry
  • I did a search on the hardware, install, up2date board for dhcp and dhcpd, and didn't find a clear answer to my questions. I also found the ASG-V7-Administration-Guide-EN in the weirdest damn place - in the KnowledgeBase, as opposed to the page where I downloaded the .iso, quick setkup guide, etc.

    As for a dhcpd.conf-default in v7, yes, there is one. So, I guess this gets appended to an auto-generated dhcpd.conf file? Right? That's the main point of my question: is the dhcpd.conf file generated from data stored in a database (info you provide in the WebAdmin console)?

    Is the info in the dhcpd.conf-default file part of the data that gets backed up using ASG's built-in backup routines?
  • Yes, normally whatever you put in the -default file gets automatically copied into the live file. Stopping and Starting the dhcp service after your changes should force the re-copy.

    I'm not sure on the backups.

    Also, the -default files sometimes get overwritten by up2date, so you should keep your own backup, and double-check things after up2dates.

    Barry
  • Hello, I guess that the DHCPD configuration file is generated using the data stored in Postgres, is this correct?
    If so, I need to be able to query this DB to get the static mappings and propagate them.

    Has anybody an idea how can I achieve this?
    Thank you
  • Hello again, 
    I was able to log in to the PGSQL prompt, then I saw that the databases available are


    List of databases
       Name    |   Owner   | Encoding 
    -----------+-----------+----------
     pop3      | postgres  | UTF8
     postgres  | postgres  | UTF8
     reporting | reporting | UTF8
     smtp      | postgres  | UTF8
     template0 | postgres  | UTF8
     template1 | postgres  | UTF8

    (No dhcpd or something by the way)
    But for all of them when i make a \dt (display tables) it always return NO RELATIONS FOUND.

    Am I missing something?

    Thank you