Re: [gentoo-user] DNS server packages
On 11/10/2015 10:18, J. Roeleveld wrote: > On Sunday, October 11, 2015 09:35:39 AM Alan McKinnon wrote: >> On 11/10/2015 04:13, James wrote: >>> Howdy, >>> >>> So I now have (5) statics and a fiber feed, with lots of room to grow. >>> >>> I need to setup DNS primary/secondary systems on gentoo. So right now I'm >>> looking for a suggested list of packages to install with Bind, iptables >>> and >>> DNSSEC-tools as these (2) gentoo dns servers will only run the minimum >>> packages to operate securely? >> >> auth or cache? >> >> First of all, bind is a pain to use. Reason: it's actually a reference >> implementation that as usual got forced into production use. It's slower >> than it could be because it deals with every possible corner case per RFC. >> >> As an auth server (few queries) it's OK >> As a cache (many queries), there are better servers out there. I prefer >> unbound. > > As it is related to this thread, which server would people recommend when the > DNS records are to be found in a database? > Reason I am asking: > I want to set up a lab environment with VMs coming and going. > These all need to have hostname/mac/ip stored and configured correctly. I don't understand. mac & IP go together in dhcp and arp hostname & IP go together in DNS & /etc/hosts hostname & mac & ip go together nowhere > Till now, I basically preconfigured Bind and DHCPd for a bunch of them. > I would prefer to be able to specify a hostname for this, but writing > something that keeps changing the configuration and keeping it in-sync with a > database is a bit overkill. arp updates when the host comes on-line dhcp & dns are separate from individual VMs, populating those services is part of provisioning them. Perhaps detail more what you are trying to accomplish? -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] DNS server packages
On 11/10/15 16:43, Alan McKinnon wrote: > On 11/10/2015 10:18, J. Roeleveld wrote: >> On Sunday, October 11, 2015 09:35:39 AM Alan McKinnon wrote: >>> On 11/10/2015 04:13, James wrote: Howdy, So I now have (5) statics and a fiber feed, with lots of room to grow. I need to setup DNS primary/secondary systems on gentoo. So right now I'm looking for a suggested list of packages to install with Bind, iptables and DNSSEC-tools as these (2) gentoo dns servers will only run the minimum packages to operate securely? >>> >>> auth or cache? >>> >>> First of all, bind is a pain to use. Reason: it's actually a reference >>> implementation that as usual got forced into production use. It's slower >>> than it could be because it deals with every possible corner case per RFC. >>> >>> As an auth server (few queries) it's OK >>> As a cache (many queries), there are better servers out there. I prefer >>> unbound. >> >> As it is related to this thread, which server would people recommend when >> the >> DNS records are to be found in a database? >> Reason I am asking: >> I want to set up a lab environment with VMs coming and going. >> These all need to have hostname/mac/ip stored and configured correctly. > > I don't understand. > > mac & IP go together in dhcp and arp > hostname & IP go together in DNS & /etc/hosts > > hostname & mac & ip go together nowhere > > >> Till now, I basically preconfigured Bind and DHCPd for a bunch of them. >> I would prefer to be able to specify a hostname for this, but writing >> something that keeps changing the configuration and keeping it in-sync with >> a >> database is a bit overkill. > > arp updates when the host comes on-line > dhcp & dns are separate from individual VMs, populating those services > is part of provisioning them. > > Perhaps detail more what you are trying to accomplish? > > ISC dhcpd can update bind when a host requests an IP. One of many examples "http://askubuntu.com/questions/162265/how-to-setup-dhcp-server-and-dynamic-dns-with-bind; BillK
Re: [gentoo-user] Strangely received same mails twice
On Sunday, October 11, 2015 06:46:41 PM Wallance Lee wrote: > Hello > It's very strange. I subscribe gentoo-user mailist, but I receive every mail > twice. What wrong happens? What should I do? Compare the headers of both copies and check the differences. -- Joost
Re: [gentoo-user] DNS server packages
On Sunday, October 11, 2015 09:35:39 AM Alan McKinnon wrote: > On 11/10/2015 04:13, James wrote: > > Howdy, > > > > So I now have (5) statics and a fiber feed, with lots of room to grow. > > > > I need to setup DNS primary/secondary systems on gentoo. So right now I'm > > looking for a suggested list of packages to install with Bind, iptables > > and > > DNSSEC-tools as these (2) gentoo dns servers will only run the minimum > > packages to operate securely? > > auth or cache? > > First of all, bind is a pain to use. Reason: it's actually a reference > implementation that as usual got forced into production use. It's slower > than it could be because it deals with every possible corner case per RFC. > > As an auth server (few queries) it's OK > As a cache (many queries), there are better servers out there. I prefer > unbound. As it is related to this thread, which server would people recommend when the DNS records are to be found in a database? Reason I am asking: I want to set up a lab environment with VMs coming and going. These all need to have hostname/mac/ip stored and configured correctly. Till now, I basically preconfigured Bind and DHCPd for a bunch of them. I would prefer to be able to specify a hostname for this, but writing something that keeps changing the configuration and keeping it in-sync with a database is a bit overkill. Thanks, Joost
[gentoo-user] What do you recommend to build cross-compiling toolchain?
Hi, every one! I am going to build a cross-compiling toolchain using crossdev like following: #crossdev -t arm-unknown-linux-gnueabi -S but everytime I got this error on building gcc-stage1: "cannot compute suffix of object files" just during building libgcc What can I avoid this error? I like gentoo's emerge-arm-* to build things on arm platform. What do you recommend to build cross-compiling toolchain? I can see a similar problem gentoo fourm: https://forums.gentoo.org/viewtopic-t-831862-start-0.html Any suggestions will be help.
Re: [gentoo-user] Wrong domain in e-mail failure messages
On Sunday, October 11, 2015 12:11:07 PM Peter Humphrey wrote: > Hello list, > > I've just received a delivery failure message from my ISP, zen.co.uk, saying > it couldn't deliver an e-mail I'd sent. There's only one thing wrong (apart > from the reason for the failure, which is out of my control). It's shown in > the second line of the failure notice: > > Received: from [xx.xx.xx.xx] (helo=wstn.localnet) > > I've bowdlerised the IP, and wstn is the name of this box, but where did it > get localnet from? I've grepped /etc for it, and I've searched my home > directory tree for it. Both searches turned up empty. > > I use KMail, which is set up to send all outgoing mail directly to my ISP > via SMTP; no other box is involved. And I hope my ADSL router isn't > interfering. > > My head's getting sore from being scratched. Has anyone a clue for me? In your SMTP-server config, did you configure "Send custom hostname to server"? Also, check the output of " hostname -f ". -- Joost
Re: [gentoo-user] DNS server packages
On 11/10/2015 04:13, James wrote: > Howdy, > > So I now have (5) statics and a fiber feed, with lots of room to grow. > > I need to setup DNS primary/secondary systems on gentoo. So right now I'm > looking for a suggested list of packages to install with Bind, iptables and > DNSSEC-tools as these (2) gentoo dns servers will only run the minimum > packages to operate securely? auth or cache? First of all, bind is a pain to use. Reason: it's actually a reference implementation that as usual got forced into production use. It's slower than it could be because it deals with every possible corner case per RFC. As an auth server (few queries) it's OK As a cache (many queries), there are better servers out there. I prefer unbound. > Also, what is the (nominal) minimum amount of RAM needed to keep all routes > in ram in these name servers? I don't understand. DNS servers don't keep routes in memory - routers do that. Perhaps you mean cached DNS records? DNS is light on RAM, there are only so many records typical users will look up. DNS caches not too long ago ran for years problem free with a puny few hundred MB. It's not something to be worried about. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] OT:: free pop3 mail box?
On Wed, 7 Oct 2015 16:07:47 + (UTC) Jameswrote: > I do not want gmail or any other big (brother) organization email. > I just need a simple pop3 (small) email box, in case my > (underconstruction) email server is not happy. Low traffic. > Temporary is fine too. Try vfemail.net, and their free Copper Account. The only downside I've noticed that the outgoing queue could be slower sometimes. Btw, they have interesting privacy features. Robert -- Róbert Čerňanský E-mail: ope...@tightmail.com Jabber: h...@jabber.sk
[gentoo-user] A direct keyboard layout switch for xfce4
I am asking this question here after discussing it at vim_use mailing list (as an slight off topic to the "vim and touch typing" thread) and after an extensive google search earlier. Below is some resumee from that discussion but for those of you how do not want to read all that I just formulate my question in short first: "Is there any plugin or application working under xfce4 that allows switching the keyboard layout directly, that is not by circling or toggling it. By a direct keyboard switch I mean the way to switch to a certain keyboard layout irrespectively of the its initial state. For example, I need a (configurable) hot key to switch to a Cyrillic keyboard layout if I am currently in the English keyboard layout and to do nothing if I am already in the Cyrillic keyboard layout. As far as I know it is impossible to do with the current X config and/or xfce4 keyboard layout switch plugin. So, my original post at vim_use mailing list was as follows: > I do use a "blind typing" in the sense that > I do not look into the monitor when I type, > only to the keyboard. I get used to this style > yet about 25 years ago trying to save my eyes > from the ray monitors of that days. > > Usually, I type a whole sentence without looking > into the monitor. > > It does not mean that I do not know my keyboard layout. > I do know it and can type in a complete darkness > (but much more slowly, of course). > > My hands move over the keyboard almost automatically > but I still need a little feedback from my eyes to not > hit "i" instead of "o" for example. > > In this connection I have only one inconvenience > connected with the facts that > 1) I usually have to use 3 keyboard layouts at > the same time switching between them with a hot key, > 2) it is impossible to have a "direct hot key switch" > to a certain keyboard layout in Linux world. > > Because of that I have to remember all the time not only > in which vim mode I am but also in which keyboard layout > I am and it is too much for me. As the result, I too often > end up raising my eyes to the monitor and finding out that > I have typed the whole sentence in incorrect keybord layout. :( > > In such times I very much miss the good old MS DOS keyrus > driver that could have been configured to produce a pleasant > "crimping" noise when typing in a Cyrillic keyboard layout > and nothing when typing in Latin keyboard layout, for example. > > But the "direct hot key switch" could also help a lot in this > situation. Unfortunately, as far as I know, it is impossible > in the Linux World. > > P.S. By a "direct hot key switch" I mean the hot key that > switches directly to a certain keyboard layout, not by > circling through all the active ones. > > However, such a "direct hot key switch" is possible in Windows. I was encoraged to ask this question by the post of Nikolay Pavlov who wrote: > I would suggest to ask this on superuser.com. AFAIK you cannot > do this directly with X server configuration, but there are a number > of “external” keyboard switchers which may have the needed capabilities. > The other variant is a console app like setxkbmap or xkb-switch used > in conjunction with global shortcuts capabilities provided by your > DE/WM (if no, there still are apps which provide global shortcuts > using X server own capabilities). One of the most valuable suggestions were provided by Erik Christiansen. Below, I provide them after the ">" with my comments intermitted. > It is very risky to say that anything is impossible in linux; Ok, next to impossible. ;) > it usually turns out that there are at least three ways to do what > one at first thinks impossible. My first reaction to your problem was > to suggest several files to switch to ~/.Xmodmap, and then find out > if a SIGHUP to X would make it re-read its config. And what if not? I may try this solution but I still have to google how to send a SIGNUP signal to X and, moreover, to find out how to send it in a quick and convenient way. Otherwise this way will not be a solution at all. Moreover, even before trying it, I suspect that this way of achieving a "direct hot key keyboard switch" will cause X to re-read its configuration from a file on a disk that can take a noticeable time, which is not desired. The true solution to this should be to keep all the needed keyboard layouts in memory and only change the pointer to the corresponding memory locations by a corresponding hot key. I believe that such a solution should be provided in the X configuration and realized in the corresponding window manager plugin but, as far as I know, it is not. That is why I wrote that it is impossible in Linux (unless you can re-write X, of course :). > Much easier, by appearances, is Tony's suggestion. A quick look at > ":h keymap", leading to ":h mbyte-keymap", looks very promising, not > least since there are many ready-to-use mappings: > > $ locate -r 'keymap.*vim' | wc -l > 130 > > That,
Re: [gentoo-user] DNS server packages
On Sunday, October 11, 2015 10:43:01 AM Alan McKinnon wrote: > On 11/10/2015 10:18, J. Roeleveld wrote: > > On Sunday, October 11, 2015 09:35:39 AM Alan McKinnon wrote: > >> On 11/10/2015 04:13, James wrote: > >>> Howdy, > >>> > >>> So I now have (5) statics and a fiber feed, with lots of room to grow. > >>> > >>> I need to setup DNS primary/secondary systems on gentoo. So right now > >>> I'm > >>> looking for a suggested list of packages to install with Bind, iptables > >>> and > >>> DNSSEC-tools as these (2) gentoo dns servers will only run the minimum > >>> packages to operate securely? > >> > >> auth or cache? > >> > >> First of all, bind is a pain to use. Reason: it's actually a reference > >> implementation that as usual got forced into production use. It's slower > >> than it could be because it deals with every possible corner case per > >> RFC. > >> > >> As an auth server (few queries) it's OK > >> As a cache (many queries), there are better servers out there. I prefer > >> unbound. > > > > As it is related to this thread, which server would people recommend when > > the DNS records are to be found in a database? > > Reason I am asking: > > I want to set up a lab environment with VMs coming and going. > > These all need to have hostname/mac/ip stored and configured correctly. > > I don't understand. > Perhaps detail more what you are trying to accomplish? What I do currently: Edit Bind zone-files and enter IP / Hostname combinations Edit DHCP config file and enter MAC / IP / Hostname combinations (And hope these actually match and not contain typos) What I want to do: In a database I have a table with the following fields: MAC, IP, Hostname, domain xx:xx:xx:xx:xx , 1.2.3.4 , vmobi1114node1 , vm1.lab.example.com I want the DNS server to use the IP, Hostname and domain fields for the resolving. I want the DHCP server to use all the fields for the DHCP assignments. -- Joost
[gentoo-user] Wrong domain in e-mail failure messages
Hello list, I've just received a delivery failure message from my ISP, zen.co.uk, saying it couldn't deliver an e-mail I'd sent. There's only one thing wrong (apart from the reason for the failure, which is out of my control). It's shown in the second line of the failure notice: Received: from [xx.xx.xx.xx] (helo=wstn.localnet) I've bowdlerised the IP, and wstn is the name of this box, but where did it get localnet from? I've grepped /etc for it, and I've searched my home directory tree for it. Both searches turned up empty. I use KMail, which is set up to send all outgoing mail directly to my ISP via SMTP; no other box is involved. And I hope my ADSL router isn't interfering. My head's getting sore from being scratched. Has anyone a clue for me? -- Rgds Peter
[gentoo-user] Strangely received same mails twice
Hello It's very strange. I subscribe gentoo-user mailist, but I receive every mail twice. What wrong happens? What should I do?
Re: [gentoo-user] Wrong domain in e-mail failure messages
On 11/10/2015 17:23, Peter Humphrey wrote: > On Sunday 11 October 2015 13:33:56 J. Roeleveld wrote: > >> In your SMTP-server config, did you configure "Send custom hostname to >> server"? Also, check the output of " hostname -f ". > > The SMTP server is at the ISP, so not accessible to me. > > $ hostname -f > wstn.prhnet > > Any other ideas? > What's in /etc/hosts? -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] DNS server packages
On 11/10/2015 11:33, J. Roeleveld wrote: > On Sunday, October 11, 2015 10:43:01 AM Alan McKinnon wrote: >> On 11/10/2015 10:18, J. Roeleveld wrote: >>> On Sunday, October 11, 2015 09:35:39 AM Alan McKinnon wrote: On 11/10/2015 04:13, James wrote: > Howdy, > > So I now have (5) statics and a fiber feed, with lots of room to grow. > > I need to setup DNS primary/secondary systems on gentoo. So right now > I'm > looking for a suggested list of packages to install with Bind, iptables > and > DNSSEC-tools as these (2) gentoo dns servers will only run the minimum > packages to operate securely? auth or cache? First of all, bind is a pain to use. Reason: it's actually a reference implementation that as usual got forced into production use. It's slower than it could be because it deals with every possible corner case per RFC. As an auth server (few queries) it's OK As a cache (many queries), there are better servers out there. I prefer unbound. >>> >>> As it is related to this thread, which server would people recommend when >>> the DNS records are to be found in a database? >>> Reason I am asking: >>> I want to set up a lab environment with VMs coming and going. >>> These all need to have hostname/mac/ip stored and configured correctly. >> >> I don't understand. > > > >> Perhaps detail more what you are trying to accomplish? > > What I do currently: > > Edit Bind zone-files and enter IP / Hostname combinations > Edit DHCP config file and enter MAC / IP / Hostname combinations > (And hope these actually match and not contain typos) > > What I want to do: > > In a database I have a table with the following fields: > MAC, IP, Hostname, domain > xx:xx:xx:xx:xx , 1.2.3.4 , vmobi1114node1 , vm1.lab.example.com > > I want the DNS server to use the IP, Hostname and domain fields for the > resolving. > I want the DHCP server to use all the fields for the DHCP assignments. OK, that makes sense. You'd think all decent DNS and DHCP servers out there would support any old arb db backend (very useful, no?) but it seems not. I've gotten used to independently vi'ing two files and HUP/reload two daemons over the years :-) Bind can use a mysql backend, so can most auth servers. The only dhcp server easily available on gentoo seems to be dhcp from ISC which does not support mysql. But both support ldap, maybe you can use that? There's lots of ldap frontends so getting your info into it should be easy enough. You could also look into kea (https://www.isc.org/kea/), a better dhcp server from ISC. The blurb says it supports SQL backends. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] Wrong domain in e-mail failure messages
On Sunday 11 October 2015 13:33:56 J. Roeleveld wrote: > In your SMTP-server config, did you configure "Send custom hostname to > server"? Also, check the output of " hostname -f ". The SMTP server is at the ISP, so not accessible to me. $ hostname -f wstn.prhnet Any other ideas? -- Rgds Peter
Re: [gentoo-user] DNS server packages
On Sunday, October 11, 2015 02:48:23 PM Alan McKinnon wrote: > On 11/10/2015 11:33, J. Roeleveld wrote: > > On Sunday, October 11, 2015 10:43:01 AM Alan McKinnon wrote: > >> On 11/10/2015 10:18, J. Roeleveld wrote: > >>> On Sunday, October 11, 2015 09:35:39 AM Alan McKinnon wrote: > On 11/10/2015 04:13, James wrote: > > Howdy, > > > > So I now have (5) statics and a fiber feed, with lots of room to grow. > > > > I need to setup DNS primary/secondary systems on gentoo. So right now > > I'm > > looking for a suggested list of packages to install with Bind, > > iptables > > and > > DNSSEC-tools as these (2) gentoo dns servers will only run the minimum > > packages to operate securely? > > auth or cache? > > First of all, bind is a pain to use. Reason: it's actually a reference > implementation that as usual got forced into production use. It's > slower > than it could be because it deals with every possible corner case per > RFC. > > As an auth server (few queries) it's OK > As a cache (many queries), there are better servers out there. I prefer > unbound. > >>> > >>> As it is related to this thread, which server would people recommend > >>> when > >>> the DNS records are to be found in a database? > >>> Reason I am asking: > >>> I want to set up a lab environment with VMs coming and going. > >>> These all need to have hostname/mac/ip stored and configured correctly. > >> > >> I don't understand. > > > > > > > >> Perhaps detail more what you are trying to accomplish? > > > > What I do currently: > > > > Edit Bind zone-files and enter IP / Hostname combinations > > Edit DHCP config file and enter MAC / IP / Hostname combinations > > (And hope these actually match and not contain typos) > > > > What I want to do: > > > > In a database I have a table with the following fields: > > MAC, IP, Hostname, domain > > xx:xx:xx:xx:xx , 1.2.3.4 , vmobi1114node1 , vm1.lab.example.com > > > > I want the DNS server to use the IP, Hostname and domain fields for the > > resolving. > > I want the DHCP server to use all the fields for the DHCP assignments. > > OK, that makes sense. You'd think all decent DNS and DHCP servers out > there would support any old arb db backend (very useful, no?) but it > seems not. I've gotten used to independently vi'ing two files and > HUP/reload two daemons over the years :-) Same here. Works for the most part, but I'm not the only one using the system. Which means I prefer to have it easier to use and not end up having to do all the work myself. > Bind can use a mysql backend, so can most auth servers. Need to check how difficult/easy it is to make it listen to PostgreSQL. I'm not overly attached to Bind. Having a DNS server that's easier to configure and maintain would be appreciated. > The only dhcp > server easily available on gentoo seems to be dhcp from ISC which does > not support mysql. But both support ldap, maybe you can use that? > There's lots of ldap frontends so getting your info into it should be > easy enough. That's one option, but that would mean maintaining 2 databases. One with the config for the VMs and OpenLDAP. > You could also look into kea (https://www.isc.org/kea/), a better dhcp > server from ISC. The blurb says it supports SQL backends. I'll have a look at that one. -- Joost
Re: [gentoo-user] Wrong domain in e-mail failure messages
On Sunday, October 11, 2015 04:23:19 PM Peter Humphrey wrote: > On Sunday 11 October 2015 13:33:56 J. Roeleveld wrote: > > In your SMTP-server config, did you configure "Send custom hostname to > > server"? Also, check the output of " hostname -f ". > > The SMTP server is at the ISP, so not accessible to me. I meant in the KMail configuration. (see attachment to previous email) > $ hostname -f > wstn.prhnet > > Any other ideas?
Re: [gentoo-user] Wrong domain in e-mail failure messages
Alan McKinnonwrote : > On 11/10/2015 17:23, Peter Humphrey wrote: > > On Sunday 11 October 2015 13:33:56 J. Roeleveld wrote: > > > >> In your SMTP-server config, did you configure "Send custom hostname to > >> server"? Also, check the output of " hostname -f ". > > > > The SMTP server is at the ISP, so not accessible to me. > > > > $ hostname -f > > wstn.prhnet > > > > Any other ideas? > > > > What's in /etc/hosts? No mention of localhost. > > -- > Alan McKinnon > alan.mckin...@gmail.com
Re: [gentoo-user] Wrong domain in e-mail failure messages
J. Roeleveldwrote : > On Sunday, October 11, 2015 04:23:19 PM Peter Humphrey wrote: > > On Sunday 11 October 2015 13:33:56 J. Roeleveld wrote: > > > In your SMTP-server config, did you configure "Send custom hostname to > > > server"? Also, check the output of " hostname -f ". > > > > The SMTP server is at the ISP, so not accessible to me. > > I meant in the KMail configuration. > (see attachment to previous email) > Oh, I see. No, no custom host name. It would have shown up in my search if there had been - both in previous e-mails and in configs. I'm not at home pro tem so I can't check your other e-mail. > > $ hostname -f > > wstn.prhnet > > > > Any other ideas?