テーマ: networking
-
ロールバック手順つきでDNSレコードを変更する: TTLの引き下げ、切り替え、検証
DNSの変更がユーザーに届く速さは、古いTTLがキャッシュから失効する速さに左右される。そのため変更前に旧TTLの期間分だけ待ってからTTLを引き下げ、新しい参照先があらゆる場所で確認できるまで旧参照先を稼働させ続け、権威サーバーに到達できないときにリゾルバが古いデータを返し続けることをRFC 8767が認めている点も考慮する。
-
エッジトリガーの epoll:次のエッジを待つ前にノンブロッキングで可能な処理を尽くす
準備完了通知と完全なアプリケーションメッセージを区別し、接続の停滞を避けます。
-
Configuring network interfaces with netplan on Ubuntu, and testing changes without losing the connection
Netplan renders YAML under /etc/netplan into networkd or NetworkManager configuration; `netplan try` applies a change and automatically reverts it if nobody confirms within a timeout, which is the safe way to change network settings on a remote host. Debian's ifupdown /etc/network/interfaces is the older, still-supported contrast.
-
Client prediction and reconciliation with an authoritative server
Predict local input immediately, reconcile against the matching authoritative command, and replay unacknowledged input while keeping visual correction separate.
-
Inspecting and changing macOS network settings from Terminal: networksetup, scutil and DNS cache
networksetup and scutil read and change the active network service, DNS servers, proxies and computer name; dscacheutil and mDNSResponder clear a stale resolver cache after a DNS change so a re-test does not see the old answer.
-
The TLS 1.3 handshake in outline
TLS 1.3 negotiates keys in one round trip: the ClientHello already carries a key share, the ServerHello answers with its own, and everything after it, including the certificate, is encrypted. Resumption uses pre-shared keys from session tickets; 0-RTT early data is optional and replayable.
-
Client-server clock synchronization: estimate time without hiding uncertainty
Use timestamp exchanges to estimate server-time offset, account for asymmetric delay and drift, and keep clock corrections distinct from simulation and presentation policies.
-
Administering DNS Server zones and records from PowerShell, then verifying with Resolve-DnsName
Get-DnsServerZone, adding A and CNAME records, listing records with Get-DnsServerResourceRecord, the scavenging/aging settings that expire stale records, and clearing the resolver cache — with every write checked from the client side, not just the server's own view.
-
Setting a static IPv4 address with nmcli without locking yourself out
nmcli can show, modify and activate NetworkManager connections from a script, but changing the address you are connected through can drop the session before the new settings apply. Cloning the profile first and validating before removing the old one keeps the change reversible.
-
Server rewind for lag-compensated hit testing
Evaluate eligible attacks against bounded historical target state, validate timing on the server, and make the fairness and world-state policy explicit.
-
MTU、フラグメンテーション、経路 MTU 探索
Ethernet は 1500 バイトの IP パケットを運び、トンネルや PPPoE ではそれより小さくなる。IPv6 ルーターはパケットを分割しない。経路 MTU 探索は ICMP Packet Too Big メッセージに依存するため、それがフィルターされると小さいパケットは通る一方、大きいパケットは無言で消える。この典型的なブラックホールは、MSS の制限やパケット化層でのプローブによって回避できる。
-
Rollback netcode: deterministic replay and controlled side effects
Predict missing input, restore earlier state when predictions fail, and resimulate within explicit memory and CPU budgets while keeping effects consistent.
-
Network configuration tools compared: nmcli, netplan, systemd-networkd and their Windows and macOS equivalents
Reading the current network configuration, setting a static address, and setting DNS servers — the same three tasks across NetworkManager's nmcli, Ubuntu's netplan, systemd-networkd, Windows PowerShell's networking cmdlets, and macOS's networksetup.
-
Web サービスが依存する DNS レコード
A、AAAA、CNAME は名前をアドレスに対応付け、MX はメールの配送先を示し、TXT は検証情報やポリシーを保持する。CAA は証明書の発行元を制限し、NS はゾーンを委任する。変更の前後には、キャッシュするリゾルバーだけでなく権威サーバーの応答も確認する。
-
Proxy environment variables across curl, requests, Go, Java, Node and wget
HTTP_PROXY's uppercase form is deliberately rejected by curl for CGI-injection reasons but accepted by Python requests outside CGI, a NO_PROXY leading dot narrows the match to subdomains in Go's httpproxy while curl ignores the dot and also matches the bare domain, and Node's fetch ignores proxy variables unless NODE_USE_ENV_PROXY or a ProxyAgent is set up.
-
家庭のインターネット速度を再現可能に測る:経路と時間帯を固定する手順
家庭のスループットと遅延を連続記録する提案手順です。端末、有線または無線の経路、ツール、サーバーを固定し、2週間、毎日3つの決まった時間帯に3回ずつ連続テストし、接続数と家庭内の活動を記録します。RFC 6349の帯域幅遅延積と単一・複数接続の論点は、ツール設定で数値が変わる理由として読みます。特定の事業者については何も主張しません。
-
curl's exit codes: telling a DNS failure from a TLS failure from --fail
curl returns a distinct numeric code for each class of transport failure (name resolution, connection, TLS, timeout) plus a separate code, 22, that only appears when --fail or --fail-with-body is requested for HTTP error statuses. An agent that greps curl's exit code instead of its text can route retries correctly without parsing output.
-
HTTP/1.1、HTTP/2、HTTP/3:運用で気付く違い
HTTP/1.1 は TCP 接続ごとに一度に一つのリクエストをテキスト形式で区切って送り、HTTP/2 は一つの TLS 接続でバイナリストリームを多重化し HPACK 圧縮を使いますが、TCP の損失では停止します。HTTP/3 は UDP 上の QUIC で動作し、トランスポートの先頭ブロッキングをなくし、Alt-Svc または HTTPS DNS レコードで発見されます。
-
PowerShellでDHCP Serverロールを管理する:スコープ、予約、承認、バックアップ
Get-DhcpServerv4Scopeとリースの確認、Add-DhcpServerv4Reservationでのアドレス予約、Add-DhcpServerInDCによるADでのサーバー承認、フェールオーバーの概要、危険を伴う変更前のBackup-DhcpServerによる構成バックアップを扱います。
-
Configuring network interfaces and addresses on Solaris 11.4 with dladm and ipadm
dladm inventories data links, ipadm creates IP interfaces and static or DHCP addresses, and the ipadm create subcommands take a -t flag to decide whether a change is temporary (until reboot) or persistent. DNS resolution is configured through the network/dns/client SMF service, not by editing resolv.conf directly.
機械可読: JSON