Jump to content
Froxlor Forum
  • 0

Froxlor Handling to bind9 Nameserver MX entry


roothahn

Question

Hello all,

 

I've got a little understanding problem with how froxlor works together with bind9 (in my case).

 

Let's say I have the domain example.com, which is the main domain for the froxlor panel.

Now, froxlor will create a zone file like this:

 

@       IN      NS      ns1.example.com.
@       IN      NS      ns2.example.com.
@       IN      MX      10 mail.example.com.
@       IN      A       1.2.3.4
www     IN      A       1.2.3.4
ns1     IN      A       1.2.3.4
ns2     IN      A       1.2.3.4

 

Now you see, that mail.example.com has no A-Record. So mails will be sent to nirvana.

I've managed to add an entry of

 

*       IN  A   1.2.3.4

 

by modifying the froxlor core staticly. This will be added to _every_ domain.

 

But now the mailserver has another IP.

What's the designed way to let froxlor create an entry like this (only for the main domain!):

 

mail    IN    A     1.2.3.5

 

I think nobody never had thought about ? The settings that are available in the Settings/Nameserver-Settings are very ... little :)

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

I found this:

 

if($this->settings['system']['dns_createmailentry'] == '1')
                       {
                               $zonefile.= 'mail       IN      ' . $ip_a_record . "\n";
                               if($domain['iswildcarddomain'] != '1')
                               {
                                       $zonefile.= 'imap       IN      ' . $ip_a_record . "\n";
                                       $zonefile.= 'smtp       IN      ' . $ip_a_record . "\n";
                                       $zonefile.= 'pop3       IN      ' . $ip_a_record . "\n";
                               }
                       }

 

It should check before, if another IP has been set for as MX server ..., maybe possible in a next version ..? :-)

Link to comment
Share on other sites

I added a new database entry and modified the core:

 

if($this->settings['system']['dns_createmailentry'] == '1')
                       {
                               $zonefile.= 'mail       IN     A ' . $this->settings['system']['mailserverip'] . "\n";
                               if($domain['iswildcarddomain'] != '1')
                               {
            //                           $zonefile.= 'imap       IN      ' . $ip_a_record . "\n";
             //                          $zonefile.= 'smtp       IN      ' . $ip_a_record . "\n";
             //                          $zonefile.= 'pop3       IN      ' . $ip_a_record . "\n";
                               }
                       }

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...