Sun Jan 06 2008 15:50:48 EST from dothebart@uncnsrd
hehe, I remembered it eventually (brain fade day).
Are there any systems where performing nameserver queries does *NOT* require, or requires something other than, "-lresolv" when linking the program?
I think I needed -lnsl
But I'm not usre if that was for dns stuff or not, there's also -lsocket in my list
but that's probably mostly just socket stuff.
yeah, gethostbyname for example requires -lnsl
The DNS support is sorely lacking. You can gethostbyname() and block and tough shit on you, or you can do it the hard way.
There's a function calles res_query that you send out the request with, and then you have to parse out the response packet.
It always seemed to be there should be a stdlib function for that.
But now that I ahve the name I can look it up.
Solaris requires this:
-lresolv -lsocket -lnsl
if I do a vmstat and I get this:
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr f0 s0 s2 s4 in sy cs us sy id
0 0 21 2206544 414768 34 7 429408368119 3 3 0 1 0 0 1 0 1105 3427 1933 7 15 78
0 0 17 2566096 610032 5 55 2466009930718 0 0 0 0 0 0 0 0 1818 6360 3392 14 14 72
0 0 17 2566096 610032 0 21 2829625512659 0 0 0 0 0 0 0 0 1493 5221 2816 12 12 76
0 0 17 2566096 610032 1 14 2627509404612 0 0 0 0 0 0 0 0 1558 5020 2811 12 11 76
0 0 17 2566096 610032 0 193 2728567458635 0 0 0 0 0 0 0 0 1433 4183 2129 31 11 57
That page pi number is big and weird.
Sometimes it's 0 and sometimes it's some huge number for a while.
Is that real? It doesn't seem right to be so big.
This is solaris.
Subject: postfix issue
Not quite the right room, but this will have to do.
Setup: two MX servers (10 and 20 in DNS records) w/ identical postfix settings receive mail for domain1 - domain 12. Domain1 & 2 are transport'ed to internal servers. Domains 3-12 are either stright out redirected to outside mail servers via transport, OR have an entery in local-host-name and have alias enteries to translate the e-mail address to one of the addresses on either an internal or external mail server.
Now for the issue.
I have a domain that I am retireing, it has turned into a spam magnet since it's been in use for over 10 years and I used an e-mail address on that domain openly on websites/forums everywhere. This domain has been listed as a local-host-name on both the MX servers with an alias entery to translate the address to one of the domains handled by an internal server. This has worked flawlessly for the past couple of years.
Today I setup vacation for one account name on both mx servers and removed the alias entery for this e-mail address. The expected result would have been the mx server seeing that the account is a local and should have attempted local delivery, see the vacation script and processing the mail appropriately.
Instead, postfix is trying to deliver the mail to one of the internal mail servers as if it was using an alias entery (domain name being changed from domain3 to domain1, but username remaining the same). Since the account name does NOT* exist, it is bouncing the messages.
Subject: more info
Fri Mar 21 2008 05:42:24 PM EDT from Peter Pulse@uncnsrd (Uncensored)
Well, silly question, but did you run postalias after you made the change?
Fri Mar 21 2008 06:31:58 PM EDT from Peter Pulse@uncnsrd (Uncensored)
Hmm, I am no postfix expert, but I've always run postalias /path/to/aliases and it always works.
"Security people are often the black-and-white kind of people that I can't
stand. I think the OpenBSD crowd is a bunch of masturbating monkeys, in
that they make such a big deal about concentrating on security to the
point where they pretty much admit that nothing else matters to them."
-- Linus Torvalds [http://article.gmane.org/gmane.linux.kernel/706950]
I like that. And I like masturbating monkeys...