Latest Server related questions

Score: 0
lamber avatar
How to forward some sub-domain of a zone to default forwarders
cn flag

I want to use bind9 to hijacking a zone,for example "qq.com",my zone configuration is

zone "qq.com" IN {
  type master;
  file "db.qq.com";
  forwarders { 119.29.29.29; 8.8.8.8; };
};

and my db file is

[root@cenotstest named]# cat db.qq.com
$TTL 1800
@           IN  SOA ns1.qq.com.  my.example.com. (
                    20210409 ;
                    3H ;
                    15M ;
                ...
Score: 0
aschkant avatar
Linux Link Speed Advertise
ca flag

As far as I know, the following command would set the speed and duplex advertised by auto-negotiation.

ethtool -s eth0 advertise 0x020

where 0x020 indicates 1000baseT Full according to the following guide:

advertise N
    Sets the speed and duplex advertised by autonegotiation.  The 
    argument is a hexadecimal value using one or a combination of
    the following values:
      0x001       10baseT  ...
Score: 0
user435345 avatar
SNMP requests timeout on Specific OID
fr flag

I´m trying to perform a SNMPBulkWalk on a Device, but it will always run into an Timeout on a the same OID.

When I try a SNMPGetNext on the OID before it also runs into an timeout.

Requests:

snmpbulkwalk -Cr10 -v2c -c *** -t 10 -r 5 IP OID

I already increasead and deacreased the parameters.

Score: 1
user3105 avatar
Disassociated WLAN (Disassociated due to inactivity)
jp flag

I am reading the logs provided by an access point I have broadcasting an 802.11i (WPA) LAN network running with a radius authentication method, and the log returns the following two messages:

Aug 31 10:09:54 10.100.1.78 CONN-LOGIN_INFO: [WLAN-1] Disassociated WLAN station 78:b8:d6:71:25:21 due to station request: Disassociated due to inactivity
Aug 31 10:09:54 10.100.1.78 CONN-LOGIN_INFO: [WLAN-1]  ...
Score: 0
Asher avatar
Apache Tomcat reject post request for more than 19KB and return 400 BAD REQUEST
il flag

Spring boot application deployed on apache tomcat 9 reject post request larger than 19kb.

the bookController:

@CrossOrigin(origins = "*", maxAge = 3600)
@RestController
@RequestMapping("/api/v1/book")
@AllArgsConstructor
public class BookController {
    private final static Logger logger = LoggerFactory.getLogger(BookController.class);
    
    private final BookServices bookServices;
    private final B ...
Score: 0
Silviu Daniel Eftimie avatar
Configure the default log fields in Google Cloud Storage when enable Logging for a bucket
cn flag

ON GCP, when "Enable logging for a bucket" (1) is there any option to configure the default log fields (2) ? (eg: I would like to drop by default the field: c_ip_region). Thank you.

(1) https://cloud.google.com/storage/docs/access-logs#delivery
(2) https://cloud.google.com/storage/docs/access-logs#format

Score: 0
jozinko9 avatar
dig - get only hostnames
cn flag

Could someone help me if there exists some way how to get from dig only hostnames if I want to get list of DNS zone? I work with this command:

dig @dns.example.com example.com axfr

output is:

example1.com.  1200   IN   A    1.1.1.1
example2.com.  1200   IN   A    2.2.2.2
....

I would like to get only

example1.com
example2.com
....

I tried to use filters dig .... | cut -d ' ' -f1 , but it doesn' ...

Score: 0
average_coder25 avatar
Flushing IP table doesn’t flush NAT
kr flag

When I execute sudo iptables -F,my iptable rules for the nat table are not flushed. Why is this the case? What does the above command do?

I believe there are three tables: filter, nat, and mangle. I don’t think any of these tables are affected by sudo iptables -F. Is this correct?

Score: 0
user212942 avatar
How to use cn instead of uid for samba ldap authentication?
in flag

Older versions of smb had an "ldap filter", which is now gone.

If cn is used instead of uid, how can I link it to smb?

Score: 0
abeoliver avatar
AWS API Gateway Websocket Does Not Route to Custom Routes
us flag

I have been struggling to get even a minimum-viable websocket API going on AWS's API Gateway all day. At this point, the gateway is routing all requests to the "$default" route but I am trying to trigger individual custom routes. What am I doing wrong?

My RouteSelectionExpression for the API is "$request.body.action", the custom route is described like this

UpdateRoute:
Type: AWS::ApiGatewayV2::Rou ...
Score: 0
dokgu avatar
WordPress unable to connect to MySQL from GCP Compute Engine VM
gb flag

I have a Google Cloud Platform Compute Engine VM instance where I have Apache installed. I wanted to put WordPress on here and have the MySQL database created locally instead of using another GCP Resource API.

I've finished installing MySQL locally and created a database and user and granted access as well. But when I try installing WordPress I get this error:

Error establishing a database connecti ...

Score: 0
Redirect TLS traffic by hostname
cn flag

I have an IoT device that connects to a.iot.x.amazonaws.com at port 8883 (secure MQTT). I would instead like it to connect to my own site at b.iot.x.amazonaws.com (same port and protocol). I would like to use network tools to redirect the traffic. I do not wish to replace the firmware on the IoT device. I am using a site on the same subdomain (iot.x) to avoid TLS issues, since the certificate AWS provid ...

Score: 1
Brave Warrior avatar
Rewriterule not working with Joomla urls due to question mark and other special characters, also due to long urls
ma flag

So I moved from Joomla CMS and now I need to finish my permanent redirects, but the following redirect isn't working (it's actually returning an error 404):

RewriteCond %{HOST_NAME} =&?$
#RewriteRule ^component/adsmanager/?view=list&catid=0&rootid=0&Itemid=1000 /newurl [L,R=301]

I'm aware that this is happening because of the special characters like question mark, but I'm not really su ...

Score: 0
Is there a performance impact to reloading nginx configuration?
sn flag
a p

I've got an nginx server whose config is generated on the fly by a set of scripts, and managing whether there's a config-restart-requiring change or not is actually a nontrivial process.

Is there a downside to simply telling nginx to reload via HUP once every few minutes (every minute?) to guarantee that the new config - which will overwrite the old in the same location - is brought in?

My initial t ...

Score: 0
kunz avatar
Disk disappeared after umount and reboot
cn flag

I had a disk which disappeared:

# df -h
Filesystem                    Size  Used Avail Use% Mounted on
.
.
/dev/mapper/vg1-osblv02       5.0T   61G  4.7T   2% /data/osb-pool-1
/dev/mapper/vg01-osblv01      1.8T   45G  1.7T   3% /data/osb-pool-0
 .
 .     

but after I did a force umount on dev/mapper/vg1-osblv02 and rebooted I could not see it any longer:


# df -h
Filesystem                    Size  Used ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.